scaredghost.gbsres 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. {
  2. "_resourceType": "actorPrefab",
  3. "id": "aa85a6c2-7d1b-4e7c-b0ff-d029b9ec31b7",
  4. "name": "ScaredGhost",
  5. "frame": 0,
  6. "animate": false,
  7. "spriteSheetId": "b98bf956-914f-4ee1-b828-5202d3645f05",
  8. "moveSpeed": 0.7,
  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_SOUND_PLAY_EFFECT",
  43. "args": {
  44. "type": "1eec9e8f-6c62-4716-82a0-2b35046e4d6d",
  45. "priority": "medium",
  46. "pitch": 4,
  47. "frequency": 200,
  48. "duration": 0.5,
  49. "wait": true,
  50. "effect": 5
  51. },
  52. "id": "513f01bb-210b-4c24-bbd9-fe717688bc45"
  53. },
  54. {
  55. "command": "EVENT_SET_VALUE",
  56. "args": {
  57. "variable": "2",
  58. "value": {
  59. "type": "true"
  60. }
  61. },
  62. "id": "c7a2cd05-ebac-43fa-a8f8-6033b7eac076"
  63. },
  64. {
  65. "command": "EVENT_DEC_VALUE",
  66. "args": {
  67. "variable": "1"
  68. },
  69. "id": "0de306d4-ee05-40f5-ab6b-dfc314a6e3a6"
  70. },
  71. {
  72. "command": "EVENT_CALL_CUSTOM_EVENT",
  73. "args": {
  74. "customEventId": "7a4a0afd-9a83-4ae5-aadd-c77ade95ae42",
  75. "$actor[1]$": "$self$"
  76. },
  77. "id": "84b3142a-a8e4-4f7b-a6d9-f0c7f9d63fd7"
  78. },
  79. {
  80. "command": "EVENT_CAMERA_SHAKE",
  81. "args": {
  82. "time": 0.5,
  83. "frames": 30,
  84. "shakeDirection": "horizontal",
  85. "magnitude": {
  86. "type": "number",
  87. "value": 5
  88. }
  89. },
  90. "id": "cd45a399-ba84-4508-8fc6-f000538e277a"
  91. },
  92. {
  93. "command": "EVENT_WAIT",
  94. "args": {
  95. "time": 1.5,
  96. "frames": 30
  97. },
  98. "id": "26d8be52-732d-431e-a44d-38ef0e00f07a"
  99. },
  100. {
  101. "command": "EVENT_SET_VALUE",
  102. "args": {
  103. "variable": "2",
  104. "value": {
  105. "type": "false"
  106. }
  107. },
  108. "id": "1ac82b06-4087-459f-b8c8-bd84ffdf128d"
  109. }
  110. ],
  111. "false": []
  112. },
  113. "id": "498e75e6-afd2-4e88-95cb-cd4a08edeb61"
  114. }
  115. ]
  116. },
  117. "id": "e04604c1-5fa6-431f-b98b-482348c69291"
  118. }
  119. ],
  120. "startScript": [],
  121. "updateScript": [
  122. {
  123. "command": "EVENT_ACTOR_MOVE_TO",
  124. "args": {
  125. "actorId": "$self$",
  126. "x": {
  127. "type": "number",
  128. "value": 20
  129. },
  130. "y": {
  131. "type": "number",
  132. "value": 27
  133. },
  134. "moveType": "horizontal",
  135. "useCollisions": false,
  136. "__comment": true
  137. },
  138. "id": "9afadcaa-4866-45e5-bfff-1b1e834e5673"
  139. },
  140. {
  141. "command": "EVENT_WAIT",
  142. "args": {
  143. "time": 0.1,
  144. "frames": 30,
  145. "__comment": true,
  146. "__collapse": false,
  147. "units": "time"
  148. },
  149. "id": "eb2e4942-3989-4b84-a9b5-e3b1273ce525"
  150. },
  151. {
  152. "command": "EVENT_ACTOR_MOVE_TO",
  153. "args": {
  154. "actorId": "$self$",
  155. "x": {
  156. "type": "number",
  157. "value": 34
  158. },
  159. "y": {
  160. "type": "number",
  161. "value": 27
  162. },
  163. "moveType": "horizontal",
  164. "useCollisions": false,
  165. "__comment": true
  166. },
  167. "id": "dc01463d-e84f-4e31-9aa7-a59dd3d1e0ce"
  168. },
  169. {
  170. "command": "EVENT_WAIT",
  171. "args": {
  172. "time": 0.5,
  173. "frames": 16,
  174. "units": "frames",
  175. "__comment": true
  176. },
  177. "id": "e4a26788-8a51-41fb-9861-d0d35d30d47f"
  178. },
  179. {
  180. "command": "EVENT_CALL_CUSTOM_EVENT",
  181. "args": {
  182. "customEventId": "f47e8b8d-88c3-44ac-90c4-82b14473fb6d",
  183. "$variable[V0]$": {
  184. "type": "number",
  185. "value": 0
  186. },
  187. "$variable[V1]$": {
  188. "type": "number",
  189. "value": 0
  190. },
  191. "$variable[V2]$": {
  192. "type": "number",
  193. "value": 0
  194. },
  195. "__comment": false
  196. },
  197. "id": "4d36d093-8af3-47ed-8ba4-9b8fba5f9a4b"
  198. }
  199. ],
  200. "hit1Script": [],
  201. "hit2Script": [],
  202. "hit3Script": []
  203. }