This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:examples:orx_scroll:collisions_with_scrollobjects [2022/07/14 12:55 (3 years ago)] – created sausage | en:examples:orx_scroll:collisions_with_scrollobjects [2025/09/30 17:26 (4 weeks ago)] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Collisions can be tested in ScrollObjects using the '' | Collisions can be tested in ScrollObjects using the '' | ||
| - | Also, the parts of both ScrollObjects that are colliding are available in the function. | + | Also, the individual |
| <code c> | <code c> | ||
| - | orxBOOL | + | void Enemy:: |
| orxBODY_PART *_pstPart, | orxBODY_PART *_pstPart, | ||
| orxBODY_PART *_pstColliderPart, | orxBODY_PART *_pstColliderPart, | ||
| Line 16: | Line 16: | ||
| } | } | ||
| - | const orxSTRING colliderName = _poCollider-> | + | const orxSTRING colliderName = _poCollider-> |
| if (orxString_SearchString(colliderName, | if (orxString_SearchString(colliderName, | ||
| const orxSTRING shipPartName = orxBody_GetPartName(_pstColliderPart); | const orxSTRING shipPartName = orxBody_GetPartName(_pstColliderPart); | ||
| Line 22: | Line 22: | ||
| } | } | ||
| - | return orxTRUE; | ||
| } | } | ||
| } | } | ||
| </ | </ | ||