That is actually a pretty nice game.
Well to be honest, I believe this is all a trigger setup much like the video here [u="
Trigger Tutorial[/u]. You will just make use of the
On Trigger Enter and
On Trigger Exit parameters.
To explain more:
Legend ----->
Bold = actions,
Italic = parameters in actions,
Underlined = Events, Double Quotes (" ") = States.
1- Create the object that you want to act as the blocks.
2- Assign a trigger to it.
3- Change that to a prefab.
4- Add an FSM to the trigger of the object.
5- The FSM would have a
Trigger Event action.
6- Create 2 events, one called
Enter and one called
Exit7- Create 2 states, one called "Enter" and one called "Exit"
8- Change the parameter
Send Event in the
Trigger Event to the event you created
Enter.
9- Create another
Trigger Event action and change the
Trigger to
On Trigger Exit10- Change the parameter
Send Event in the
Trigger Event to the event you created
Exit.
11- In the "Enter" state create an action to change the texture of the platform by using action
Set Material Texture12- In the "Exit" state create an action to destroy the object by first using action
Get Parent (and store it in an object variable) so that we can get the parent and not only destroy the trigger and then use
Destroy Object and feed it the object variable we created
Hope that helps.