FANDOM


The [ collision ] command Edit

Collisions are game events that occur when two objects interact. The [ collision ] command allows you to setup a game occurrence based on two objects come into contact. There are several types of collisions that can occur. Collisions are useful for setting up puzzles, traps, and creating a more dynamic game experience.

Using [ collision ] on objects Edit

collision command phase objects ]  is the general formula for creating a collision.

example: [ collision add begin crate0 platform1_1 beta say "smash" ] When a crate named crate0 collides with a platform named platform1_1 beta will say smash. 


Command
collision add ] allows you to add a collision
[ collision clear ] clear's a collision. (needs the index number, and the two objects colliding)
[ collision edit ] edit a collision .(needs an index number, and the two objects colliding)
[ collision execute ] execute a collision for testing purposes.
[ collision get ] get the collision placed on an object. (needs an index, and the two objects colliding)
collision insert ] insert a collision to a certain index. (needs an index, and the two objects colliding)
collision remove ] remove a collision from a collision list. (needs an index and the two objects colliding)
[ collision set ] set a collision to a certain outcome. (needs an index and the two objects colliding)
collision swap ] switch the order of collisions ( needs the index to be switched in and the index of the current collision 
Phase
begin

when two game objects start to touch each other.

bump
bumpHit
bumpMiss
bumped
bumpedOff
bumping
end when two game objects finish touching each other.
stomp
stomped




Coming Soon

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.