Guest User

Untitled

a guest
Jun 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //call this script when you create room
  2. global.stick_cooldown = 0;
  3.  
  4.  
  5.  
  6. //call this script in room's step
  7. if (global.stick_cooldown != 0)
  8. {
  9. global.stick_cooldown -= 1;
  10. }
  11.  
  12.  
  13.  
  14. //call this script when the player presses the key for the stick
  15. if global.stick_cooldown = 0
  16. {
  17. instance_create(player.x,player.y,stick);
  18. }
  19.  
  20.  
  21.  
  22. //call this script when stick is created
  23. active = 45;
  24. direction = player.direction;
  25.  
  26.  
  27.  
  28. //call this script in stick's step
  29. if (active != 0)
  30. {
  31. active -=1;
  32. }
  33. elseif (active == 0)
  34. {
  35. instance_destroy();
  36. }
Add Comment
Please, Sign In to add comment