Guest User

Helper Code

a guest
Nov 28th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. ;---------------------------------------------------------------------------
  2. ; Leafy Detetor Helper
  3. [Statedef 3001]
  4. type = S
  5. movetype = A
  6. physics = N
  7. anim = 3001
  8.  
  9. [State 3001, BindToRoot]
  10. type = BindToRoot
  11. trigger1 = Time <= 0
  12. time = 1
  13. pos = 35,-52
  14.  
  15. [State 3000, PlaySnd]
  16. type = PlaySnd
  17. triggerall = movehit
  18. trigger1 = Time = 3
  19. value = 3000,3
  20. loop = 1
  21. channel = 6
  22.  
  23. [State 3002, TargetBind]
  24. type = TargetBind
  25. triggerall = NumTarget
  26. trigger1 = 1
  27. time = 1
  28. pos = target,Pos X , Floor((target,Pos Y*1.0)-(abs(target, pos x - parent,pos x)*.013))
  29.  
  30. [State 3001, HitDef]
  31. type = HitDef
  32. trigger1 = Time <= 6 && !movecontact
  33. attr = S,NA
  34. hitflag = MAF
  35. guardflag = MA
  36. animtype = hard
  37. damage = 2,0
  38. sparkxy = 0,0
  39. hitsound = S1,0
  40. guardsound = S2,0
  41. ground.type = High
  42. p2stateno = 3002
  43.  
  44. [State 3001, AngleDraw]
  45. type = AngleDraw
  46. trigger1 = 1
  47.  
  48. [State 3001, AngleAdd]
  49. type = AngleAdd
  50. trigger1 = Time%6 = 0
  51. value = 1
  52.  
  53. [State 3001, StopSnd]
  54. type = StopSnd
  55. trigger1 = Time = 300
  56. trigger2 = moveguarded
  57. trigger3 = AnimElem = 3 && !movecontact && anim != 3003
  58. channel = 6
  59.  
  60. [State 3001, PlaySnd]
  61. type = PlaySnd
  62. trigger1 = Time = 300
  63. trigger2 = moveguarded && anim != 3003
  64. trigger3 = AnimElem = 2 && !movecontact && anim != 3003
  65. value = 3000,4
  66.  
  67. [State 3001, ChangeAnim]
  68. type = ChangeAnim
  69. trigger1 = Time = 300
  70. trigger2 = moveguarded && anim != 3003
  71. trigger3 = AnimElem = 2 && !movecontact && anim != 3003
  72. value = 3003
  73.  
  74. [State 3001, DestroySelf]
  75. type = DestroySelf
  76. trigger1 = anim = 3003 && animtime = 0
Advertisement
Add Comment
Please, Sign In to add comment