invisibleghost.gbsres 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {
  2. "_resourceType": "actorPrefab",
  3. "id": "aa85a6c2-7d1b-4e7c-b0ff-d029b9ec31b7",
  4. "name": "InvisibleGhost",
  5. "frame": 0,
  6. "animate": false,
  7. "spriteSheetId": "b98bf956-914f-4ee1-b828-5202d3645f05",
  8. "moveSpeed": 0.8,
  9. "animSpeed": 255,
  10. "paletteId": "",
  11. "persistent": false,
  12. "collisionGroup": "1",
  13. "script": [
  14. {
  15. "command": "EVENT_IF",
  16. "args": {
  17. "condition": {
  18. "type": "variable",
  19. "value": "0"
  20. },
  21. "__collapseElse": false,
  22. "__collapse": false
  23. },
  24. "children": {
  25. "true": [],
  26. "false": [
  27. {
  28. "command": "EVENT_IF",
  29. "args": {
  30. "condition": {
  31. "type": "not",
  32. "value": {
  33. "type": "variable",
  34. "value": "2"
  35. }
  36. },
  37. "__collapseElse": false
  38. },
  39. "children": {
  40. "true": [
  41. {
  42. "command": "EVENT_SET_VALUE",
  43. "args": {
  44. "variable": "2",
  45. "value": {
  46. "type": "true"
  47. }
  48. },
  49. "id": "c7a2cd05-ebac-43fa-a8f8-6033b7eac076"
  50. },
  51. {
  52. "command": "EVENT_DEC_VALUE",
  53. "args": {
  54. "variable": "1"
  55. },
  56. "id": "0de306d4-ee05-40f5-ab6b-dfc314a6e3a6"
  57. },
  58. {
  59. "command": "EVENT_CALL_CUSTOM_EVENT",
  60. "args": {
  61. "customEventId": "7a4a0afd-9a83-4ae5-aadd-c77ade95ae42",
  62. "$actor[1]$": "$self$"
  63. },
  64. "id": "84b3142a-a8e4-4f7b-a6d9-f0c7f9d63fd7"
  65. },
  66. {
  67. "command": "EVENT_ACTOR_EFFECTS",
  68. "args": {
  69. "effect": "flicker",
  70. "actorId": "player",
  71. "distance": 20,
  72. "speed": 2,
  73. "time": 1.5,
  74. "frames": 30
  75. },
  76. "id": "568b64c1-4457-4543-b626-bfbef28a894c"
  77. },
  78. {
  79. "command": "EVENT_WAIT",
  80. "args": {
  81. "time": 1.5,
  82. "frames": 30
  83. },
  84. "id": "26d8be52-732d-431e-a44d-38ef0e00f07a"
  85. },
  86. {
  87. "command": "EVENT_SET_VALUE",
  88. "args": {
  89. "variable": "2",
  90. "value": {
  91. "type": "false"
  92. }
  93. },
  94. "id": "1ac82b06-4087-459f-b8c8-bd84ffdf128d"
  95. }
  96. ],
  97. "false": []
  98. },
  99. "id": "498e75e6-afd2-4e88-95cb-cd4a08edeb61"
  100. }
  101. ]
  102. },
  103. "id": "e04604c1-5fa6-431f-b98b-482348c69291"
  104. }
  105. ],
  106. "startScript": [],
  107. "updateScript": [
  108. {
  109. "command": "EVENT_ACTOR_MOVE_TO",
  110. "args": {
  111. "actorId": "$self$",
  112. "x": {
  113. "type": "number",
  114. "value": 20
  115. },
  116. "y": {
  117. "type": "number",
  118. "value": 27
  119. },
  120. "moveType": "horizontal",
  121. "useCollisions": false
  122. },
  123. "id": "9afadcaa-4866-45e5-bfff-1b1e834e5673"
  124. },
  125. {
  126. "command": "EVENT_WAIT",
  127. "args": {
  128. "time": 0.1,
  129. "frames": 30
  130. },
  131. "id": "eb2e4942-3989-4b84-a9b5-e3b1273ce525"
  132. },
  133. {
  134. "command": "EVENT_ACTOR_MOVE_TO",
  135. "args": {
  136. "actorId": "$self$",
  137. "x": {
  138. "type": "number",
  139. "value": 34
  140. },
  141. "y": {
  142. "type": "number",
  143. "value": 27
  144. },
  145. "moveType": "horizontal",
  146. "useCollisions": false
  147. },
  148. "id": "dc01463d-e84f-4e31-9aa7-a59dd3d1e0ce"
  149. }
  150. ],
  151. "hit1Script": [],
  152. "hit2Script": [],
  153. "hit3Script": []
  154. }