Create, Compete & Win at Redbrick Connect 2024! 🎉
Block codingEvent API

Event API

API FormatLinked BlockFunction
CollideObjectRun a callback function when a specific target collides with an object
CollideOnceObjectExecutes a callback function when a specific target collides with an object, only once
CollideEndObjectCallback function runs when target on object leaves after collision
ContactObjectIf the object is in contact after a target crashes, the callback function runs repeatedly

Collide

Executes indented code when a specific target collides with an object.

  • object : Select the object to determine if it crashed.

OOBC-collide OOBC Collide sample code


OOBC-collide OOBC Collide

CollideOnce

Executes indented code only once when a specific target collides with an object.

object : Select the object to determine if it crashed.


OOBC-collideonce OOBC CollideOnce sample code


OOBC-collideonce OOBC CollideOnce

CollideEnd

Executes indented code only once when an object leaves a specific target after a collision.

object : Select the object to determine if it crashed.


OOBC-collideend OOBC CollideEnd sample code


OOBC-collideend OOBC CollideEnd

Contact

Executes indented code repeatedly if the object is in contact after a specific target crashes.

object : Select the object to determine if it crashed.


OOBC-contact OOBC Contact sample code