Each block in this section lets you choose between Actor 1 and Actor 2. Collision events involve 2 actors. When the event is reported, the first actor in the event's block corresponds to Actor 1 and the second actor in the block corresponds to Actor 2.
You can refer to Actor 1 and Actor 2 directly using the blocks embedded in the event itself.
Returns true
if the actor's [top/left/bottom/right] side was hit. If the collision shape is not a box, we still approximate the shape as a box to calculate this.
event.thisFromTop
event.thisFromLeft
event.thisFromBottom
event.thisFromRight
event.otherFromTop
event.otherFromLeft
event.otherFromBottom
event.otherFromRight
Returns the group of the shape for the "other" (or "second") object in the collision. In most cases, the group of the shape is the same as that of the actor, but that isn't always the case.
internalGetGroup(event.thisActor, event.thisShape, event)
internalGetGroup(event.otherActor, event.otherShape, event)
Returns true
if the "other" (or "second") object in the collision was an [actor / terrain region / tile / sensor].
event.thisCollidedWithActor
event.thisCollidedWithTerrain
event.thisCollidedWithTile
event.thisCollidedWithSensor