|
Step event for Mario: ------------------------------------------------ if (place_meeting(x,y+1,obj_platform)) obj_mario.hspeed =obj_platform.hspeed else obj_mario.hspeed=obj_mario.hspeed
------------------------------------------------ Collision with platform for Mario: ------------------------------------------------ alarm[2] = 15 ------------------------------------------------ Alarm 2 for Mario: ------------------------------------------------ if place_free(obj_mario.x+0,obj_mario.y+1) hspeed = 0 ------------------------------------------------ The alarm lets Mario know that he's not on a moving platform anymore. Without it he might still move with the platform even when he's off of it.
Hopefully that will work.
--------------------
|