![]() This will give you a horizontal moving platform. This code will check whether there is a moving platform below the character and if there is, take is's ID and set the hspeed to the hspeed at that coordinate. ObjID= instance_position( x- sprite_xoffset+ sprite_width/2, y- sprite_yoffset+ sprite_height,object_moving_platform) If position_meeting( x- sprite_xoffset+ sprite_width/2, y- sprite_yoffset+ sprite_height,object_moving_platform)
0 Comments
Leave a Reply. |