Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //call this script when you create room
- global.stick_cooldown = 0;
- //call this script in room's step
- if (global.stick_cooldown != 0)
- {
- global.stick_cooldown -= 1;
- }
- //call this script when the player presses the key for the stick
- if global.stick_cooldown = 0
- {
- instance_create(player.x,player.y,stick);
- }
- //call this script when stick is created
- active = 45;
- direction = player.direction;
- //call this script in stick's step
- if (active != 0)
- {
- active -=1;
- }
- elseif (active == 0)
- {
- instance_destroy();
- }
Add Comment
Please, Sign In to add comment