Callbacks

callbackFunction()

Signature of a default callback function.

The default callback function takes no arguments, and is thus the simplest callback function possible. There are several Scribbler Adventure objects purely designed to allow the use of this simple callback function in favor of more powerful, but more complicated, alternatives.

onClick(obj, event)

Signature of the function that handles click events.

Args:

obj: the object being clicked.

event: the event triggering the click.

onCollision(myFixture, otherFixture, contact)

Signature of the function that handles collisions.

Args:
myFixture: The Fixture of the object on which
this collision function is installed.
otherFixture: The Fixture of the object colliding
with the object on which this collision function was installed.

contact: The Contact object associated with this collision.

onSeparation(myFixture, otherFixture)

Signature of the function that handles separation events.

Args:
myFixture: The Fixture of the object on which
this separation function is installed.
otherFixture: The Fixture of the object separating from
the object on which this collision function was installed.
actorOnUse(actor)

Signature of the onUsecallbacks used by Scribbler adventure actors.

Args:
actor: The actor of which the use action is called.
actorOnInteract(actor, items)

Signature of the onInteract callbacks used by Scribbler adventure actors.

Args:

actor: The actor of which the use action is called.

items: The list of items that passed to the use function when the user
interacted with this Actor.