Advertisement
Purianite

Untitled

Oct 8th, 2011
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Init
  2. life = 10;
  3. size = 1;
  4. gibspeed = -2;
  5. burstspeed = gibspeed;
  6. acceleration = 0;
  7. turnspeed = 0;
  8. topspeed = 0;
  9. minspeed = 0;
  10. //Set variables to be manipulated by alarms and timelines (From Elemaiden, adapted into arrays)
  11. //You can do it up to 8 times.
  12. movealarm[0] = 0;//These variables are assigned to alarms.
  13. movealarm[1] = 0;
  14. movealarm[2] = 0;
  15. movealarm[3] = 0;
  16. movealarm[4] = 0;
  17. movealarm[5] = 0;
  18. movealarm[6] = 0;
  19. movealarm[7] = 0;
  20. switchspeed[0] = 0; //Change speed once
  21. switchspeed[1] = 0; //Change speed a second time
  22. switchspeed[2] = 0; //Change speed a third time
  23. switchspeed[3] = 0; //Change speed a fourth time (FOR WHAT?)
  24. switchspeed[4] = 0;
  25. switchspeed[5] = 0;
  26. switchspeed[6] = 0;
  27. switchspeed[7] = 0;
  28. dirchange[0] = 0; //Change direction once
  29. dirchange[1] = 0; //Change direction a second time
  30. dirchange[2] = 0; //Change direction a third time
  31. dirchange[3] = 0; //Bleh, must I explain?
  32. dirchange[4] = 0;
  33. dirchange[5] = 0;
  34. dirchange[6] = 0;
  35. dirchange[7] = 0;
  36. newdir[0] = 0; //Straight up direction setting
  37. newdir[1] = 0;
  38. newdir[2] = 0;
  39. newdir[3] = 0;
  40. newdir[4] = 0;
  41. newdir[5] = 0;
  42. newdir[6] = 0;
  43. newdir[7] = 0;
  44. newaccel[0] = 0; //Change acceleration
  45. newaccel[1] = 0;
  46. newaccel[2] = 0;
  47. newaccel[3] = 0;
  48. newaccel[4] = 0;
  49. newaccel[5] = 0;
  50. newaccel[6] = 0;
  51. newaccel[7] = 0;
  52. newturnspeed[0] = 0; //Change turning speed
  53. newturnspeed[1] = 0;
  54. newturnspeed[2] = 0;
  55. newturnspeed[3] = 0;
  56. newturnspeed[4] = 0;
  57. newturnspeed[5] = 0;
  58. newturnspeed[6] = 0;
  59. newturnspeed[7] = 0;
  60. playerdir = point_direction(x,y,obj_player.x,obj_player.y); //Just in case someone wants any of the newaccel variables to be the player's direction
  61.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement