Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create Event:
- execute code:
- image_index = choose(0, 1, 2);
- image_speed = 0;
- image_angle = random(360);
- // Spin direction
- dir = choose(-1, 1);
- Step Event:
- execute code:
- // Rotate when thrown
- image_angle += (3 * speed) * dir;
- // Friction
- speed = Approach(speed, 0, 0.25);
- Collision Event with object enemypar:
- execute code:
- // Bounce off wall and increase friction
- move_bounce_solid(true);
- speed *= 0.5;
- // Switch rotate direction
- dir *= -1;
- Collision Event with object obj_wallCol:
- execute code:
- // Bounce off wall and increase friction
- move_bounce_solid(true);
- speed *= 0.5;
- // Switch rotate direction
- dir *= -1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement