Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var vsp_final = vsp + vsp_carry;
- vsp_carry = 0;
- //Vertical Collision
- if place_meeting(x,y+vsp_final,par_wall)
- {
- while (!place_meeting(x,y+sign(vsp_final),par_wall)) y+=sign(vsp_final);
- if (sign(vsp_final) == 1)
- {
- grounded = 1;
- djump = 2;
- }
- vsp_final = 0;
- }
- else
- {
- grounded = 0;
- }
- y += vsp_final;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement