the next day I'm going to watch the "double jump" , so that the player can have a double jump ability.
Tuesday, June 6, 2017
Gamemaker Day 54
Today I learned how to make my moving platform to move forward with the player, so that the player won't fall when the platform is moving. what i did: on the previous post , my player won't stay in the moving platform, even though the player is on top of the moving platform. so i did a few changes. first I use "if place_meeting(x,y-1,obj_player)" to check if the player is on the of the moving platoform. if it is then run "obj_plater.hsp_carry = hsp". This mean obj_player's hspeed to a new variable when the player is on top of the moving platform , since the "hsp_carry" is a new variable,so i have to add a numbers to it. first I set "hsp_carry" to 0 in the player object, and then I create a new variable (hsp_final) to make a composition of hspeed and hsp_carry. then I just have to change every hspeed to "hsp_final" in the horizontal collision, so that when the the player is on top of the platform, it'll have the speed of hspeed and hsp_carry.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment