Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player Create Event:
- right = true
- Koopa Create Event:
- sprite_index = spr_koopa_walk_l
- image_speed = 0.3
- image_index = 0
- hspeed -= 3
- Koopa Step Event:
- //I put simple DnD gravity here but you can put in code gravity if you like
- Collision with Player Obj Event:
- if (other.vspeed > 0 && other.y+8 < y)
- {
- other.vspeed=-5
- instance_change(obj_koopa_shell,true)
- }
- Koopa Collision with Regular Collision Obj Event:
- //Again I just put some DnD actions here those actions being: Move to Contact (direction = direction, maximum = 12, against = solid objects) and Speed Vertical (vert. speed = 0)
- Koopa Collision with Reverse Collision Obj Event:
- Same as above event but with a DnD Reverse Horizontal
- if sprite_index = spr_koopa_walk_l
- {
- sprite_index = spr_koopa_walk_r
- image_speed = 0.3
- image_index = 0
- }
- else
- {
- sprite_index = spr_koopa_walk_l
- image_speed = 0.3
- image_index = 0
- }
- Koopa Outside Room Event:
- instance_destroy()
- Koopa Shell Create Event:
- speed = 0
- Koopa Shell Step Event:
- //DnD Gravity, feel free to put in your own gravity system whether it be code or DnD
- Koopa Shell Collision with Obj Player Event:
- if (other.vspeed > 0 && other.y+8 < y)
- {
- other.vspeed=-5
- if other.right = true
- {
- hspeed-=5
- }
- if other.right = false
- {
- hspeed+=5
- }
- }
- Koopa Shell Collision with Regular Collision Obj:
- //I just put some DnD actions here those actions being: Move to Contact (direction = direction, maximum = 12, against = solid objects) and Speed Vertical (vert. speed = 0)
- Koopa Shell Outside Room Event:
- instance_destroy()
Advertisement
Add Comment
Please, Sign In to add comment