Monday, May 15, 2017

Gamemaker Day 42

Today I learned a new function call "place_meeting();" this function is to check for a collision, if the object is collide with other object ,then it will change off the position of it . what i did : the first thing i did is create some variable for my character, and then I did the basic movement of the character, the character only can move left and right for now . when the player press "space" , then the player will move 7 pixel up. when the player move right or left , it will have 4 pixel speed. also I use "place_meeting" to check if my character colliding with the wall, if it is then my vertical speed will set to 0, but it the player isn't colliding with the wall , then it will move down.





the next day I'm going to continue watching the the tutorial then add more thing to it

No comments:

Post a Comment