Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE:
- reload = 30 // Amount of time in between swings
- image_speed = 0
- image_index = 0
- STEP:
- if image_index < 8 {
- image_index += 0.15
- } else {
- image_index = 8
- if reload > 0 reload -= 1 else {
- image_index = 0
- reload = 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement