Check for vertical collisions and then move if we can While (!place_meeting(x+onepixel,y,oWall)) Var onepixel = sign(hsp) //moving left or right? right = 1, left = -1. Check for horizontal collisions and then move if we can If (place_meeting(x,y+1,oWall)) and (key_jump) Copy & paste the following code: //Get inputs (1 = pressed, 0 = not pressed) If not in gms2 add the code action again as needed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |