Advertisement
PANDABOMB

Untitled

Mar 31st, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. //B - Reversals
  2. if (attack == AT_NSPECIAL || attack == AT_FSPECIAL || attack == AT_DSPECIAL || attack == AT_USPECIAL){
  3. trigger_b_reverse();
  4. }
  5.  
  6.  
  7. //#region NSPECIAL
  8. if(attack == AT_NSPECIAL && special_down)
  9. {
  10. if(window == 1 && window_timer == 1)
  11. {
  12. with(obj_article1)
  13. {
  14. if(player_id == other.id)
  15. if(state_timer >= 60)
  16. {
  17. if(state == 2 || state == 1)
  18. {
  19. state = 3;
  20. state_timer = 0;
  21. image_index = 0;
  22. break;
  23. }
  24. }
  25. }
  26. }
  27. }
  28.  
  29.  
  30. if(attack == AT_NSPECIAL && special_down)
  31. {
  32. with(obj_article1)
  33. {
  34. if(player_id == other.id)
  35. {
  36. if(state == 6)
  37. {
  38. state = 7;
  39. state_timer = 0;
  40. image_index = 0;
  41. }
  42. }
  43. }
  44. }
  45.  
  46. if(attack == AT_NSPECIAL){
  47. if(window == 2){
  48. if( window_timer >= 10 && !special_down ){
  49. window = 3;
  50. window_timer = 0;
  51. }
  52.  
  53. }
  54.  
  55. }
  56. //#endregion
  57. if(attack == AT_DSTRONG)
  58. {
  59. if(window == 1 && window_timer == 1)
  60. {
  61. with(obj_article1)
  62. {
  63. if(player_id == other.id)
  64. {
  65. if(state == 2 || state == 1)
  66. {
  67. state = 20;
  68. state_timer = 0;
  69. image_index = 0;
  70.  
  71. }
  72. }
  73. }
  74. }
  75. }
  76. if(attack == AT_DSTRONG)
  77. {
  78. with(obj_article1)
  79. {
  80. if(player_id == other.id)
  81. {
  82. if(state == 6)
  83. {
  84. state = 21;
  85. state_timer = 0;
  86. image_index = 0;
  87. }
  88. }
  89. }
  90. }
  91.  
  92. if(attack == AT_FSTRONG){
  93. if(window == 1 && window_timer = 1){
  94. with(obj_article1){
  95. if(player_id == other.id){
  96. if((state == 2 || state == 1) && state_timer >= 60){
  97. state = 30;
  98. state_timer = 0;
  99. image_index = 0;
  100. }
  101. }
  102. }
  103. }
  104. }
  105.  
  106. if(attack == AT_FSTRONG){
  107. if(window == 1 && window_timer = 1){
  108. with(obj_article1){
  109. if(player_id == other.id){
  110. if(state == 6){
  111. state = 31;
  112. state_timer = 0;
  113. image_index = 0;
  114. }
  115. }
  116. }
  117. }
  118. }
  119.  
  120. if(attack == AT_USTRONG){
  121. if(window == 1 && window_timer = 1){
  122. with(obj_article1){
  123. if(player_id == other.id){
  124. if((state == 1 || state == 2) && state_timer >= 60){
  125. state = 40;
  126. state_timer = 0;
  127. image_index = 0;
  128. }
  129. }
  130. }
  131. }
  132. }
  133.  
  134. if(attack == AT_USTRONG){
  135. if(window == 1 && window_timer = 1){
  136. with(obj_article1){
  137. if(player_id == other.id){
  138. if(state == 6){
  139. state = 41;
  140. state_timer = 0;
  141. image_index = 0;
  142. }
  143. }
  144. }
  145. }
  146. }
  147.  
  148.  
  149.  
  150. if(attack == AT_TAUNT){
  151. if(window == 1 && window_timer == 1){
  152. with(obj_article1){
  153. if(player_id == other.id){
  154. if(state != 1 && state != 2 && state != 99 && state != 100 && state !=00){
  155. state = 99;
  156. state_timer = 0;
  157. image_index = 0;
  158. }
  159.  
  160. }
  161. }
  162. }
  163. }
  164.  
  165.  
  166.  
  167. if (attack == AT_FSPECIAL){
  168. if (window == 2){
  169. if (special_pressed){
  170. window = 3;
  171. window_timer = 0;
  172. destroy_hitboxes();
  173. }
  174. }
  175. can_fast_fall = false;
  176. }
  177.  
  178. if (attack == AT_USPECIAL){
  179. if(window == 1){
  180. hsp = 0;
  181. vsp = 0;
  182. fly_speed = 12;
  183. if(!joy_pad_idle){
  184. if(joy_dir >= 0 && joy_dir <= 180){
  185. US_vsp = fly_speed * ((sin(joy_dir) / 180) * 3.14);
  186. US_hsp = fly_speed * ((cos(joy_dir) / 180) * 3.14);
  187. spr_dir = joy_dir;
  188. }
  189. if(joy_dir >= 180 && joy_dir <= 260){
  190. US_vsp = 0;
  191. US_hsp = fly_speed * -1;
  192. spr_dir = -1;
  193. }
  194. if(joy_dir >= 280 && joy_dir < 360){
  195. US_vsp = 0;
  196. US_hsp = fly_speed;
  197. spr_dir = 1;
  198. }
  199. if(joy_dir < 260 && joy_dir > 280){
  200. US_vsp = 0;
  201. US_hsp = 0;
  202. sprite_index = sprite_get("idle")
  203. }
  204. }
  205. if(window_timer = 60){
  206. window = 2;
  207. window_timer = 0;
  208. }
  209. }
  210.  
  211. if(window == 2){
  212. vsp = US_vsp;
  213. hsp = US_hsp;
  214. }
  215.  
  216. }
  217.  
  218. if (attack == AT_DSPECIAL){
  219. if (window == 2 && !was_parried){
  220. can_jump = true;
  221. }
  222. can_fast_fall = false;
  223. can_move = false
  224. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement