Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- if ( place_meeting( x , y + 1 , objBlock ) == false )
- {
- grav = grav + 0.1;
- if ( grav > 5 )
- {
- grav = 5;
- }
- vsp = vsp + grav;
- }
- else
- {
- grav = 0;
- vsp = 0;
- }
- hsp = keyboard_check( vk_right ) * 4 - keyboard_check( vk_left ) * 4;
- move_contact_all( point_direction( x , y , x + hsp , y ) , abs( hsp ) );
- move_contact_all( point_direction( x , y , x , y + vsp ) , abs( vsp ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement