Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hBounce = 14;
- if (image_angle !=0){ //If moving platform upside down
- if instance_touch(obj_player){
- if (!obj_player.bbox_top < bbox_bottom){
- if obj_player.Key_Left{
- obj_player.hsp = hBounce;}
- if obj_player.Key_Right{
- obj_player.hsp = -hBounce;}
- }
- }
- }
- if (image_angle = 0){
- if instance_touch(obj_player){
- if (!obj_player.bbox_bottom >= bbox_top){
- if obj_player.Key_Left{
- obj_player.hsp = hBounce;}
- if obj_player.Key_Right{
- obj_player.hsp = -hBounce;}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment