scaredghost.gbsres 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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.5,
  9. "animSpeed": 255,
  10. "paletteId": "",
  11. "persistent": false,
  12. "collisionGroup": "1",
  13. "script": [],
  14. "startScript": [],
  15. "updateScript": [
  16. {
  17. "command": "EVENT_INC_VALUE",
  18. "args": {
  19. "variable": "L0",
  20. "__comment": true,
  21. "__collapse": true
  22. },
  23. "id": "71434f2e-b817-403d-aa44-b3d333579e9f"
  24. },
  25. {
  26. "command": "EVENT_IF",
  27. "args": {
  28. "condition": {
  29. "type": "gt",
  30. "valueA": {
  31. "type": "variable",
  32. "value": "L0"
  33. },
  34. "valueB": {
  35. "type": "number",
  36. "value": 10
  37. }
  38. },
  39. "__collapseElse": true,
  40. "__collapse": false,
  41. "__comment": true
  42. },
  43. "children": {
  44. "true": [
  45. {
  46. "command": "EVENT_SET_VALUE",
  47. "args": {
  48. "variable": "L0",
  49. "value": {
  50. "type": "number",
  51. "value": 0
  52. }
  53. },
  54. "id": "358c00e3-7553-4b9a-9aa8-51454436d4b2"
  55. }
  56. ],
  57. "false": []
  58. },
  59. "id": "9c71cd65-6e42-483c-b005-ac2a3bca899b"
  60. },
  61. {
  62. "command": "EVENT_IF",
  63. "args": {
  64. "condition": {
  65. "type": "ne",
  66. "valueA": {
  67. "type": "variable",
  68. "value": "L0"
  69. },
  70. "valueB": {
  71. "type": "number",
  72. "value": 0
  73. }
  74. },
  75. "__collapseElse": false,
  76. "__comment": true
  77. },
  78. "children": {
  79. "true": [
  80. {
  81. "command": "EVENT_STOP",
  82. "args": {},
  83. "id": "5b4c0a4e-6725-43b9-848b-e0c5f239d64d"
  84. }
  85. ],
  86. "false": []
  87. },
  88. "id": "fbd54610-2648-4068-878e-6a9dc18861f1"
  89. },
  90. {
  91. "command": "EVENT_WAIT",
  92. "args": {
  93. "time": 1,
  94. "frames": 30
  95. },
  96. "id": "a21ed51b-4d6c-4300-9a5c-57886c410182"
  97. },
  98. {
  99. "command": "EVENT_IF_ACTOR_DISTANCE_FROM_ACTOR",
  100. "args": {
  101. "actorId": "player",
  102. "operator": "<=",
  103. "distance": {
  104. "type": "number",
  105. "value": 10
  106. },
  107. "otherActorId": "$self$",
  108. "__collapseElse": true,
  109. "__collapse": false
  110. },
  111. "children": {
  112. "true": [
  113. {
  114. "command": "EVENT_IF",
  115. "args": {
  116. "condition": {
  117. "type": "eq",
  118. "valueA": {
  119. "type": "variable",
  120. "value": "1"
  121. },
  122. "valueB": {
  123. "type": "number",
  124. "value": 1
  125. }
  126. },
  127. "__collapseElse": false,
  128. "__collapse": false
  129. },
  130. "children": {
  131. "true": [
  132. {
  133. "command": "EVENT_IF",
  134. "args": {
  135. "condition": {
  136. "type": "lt",
  137. "valueA": {
  138. "type": "property",
  139. "target": "player",
  140. "property": "pxpos"
  141. },
  142. "valueB": {
  143. "type": "property",
  144. "target": "$self$",
  145. "property": "pxpos"
  146. }
  147. },
  148. "__collapseElse": false
  149. },
  150. "children": {
  151. "true": [
  152. {
  153. "command": "EVENT_ACTOR_MOVE_RELATIVE",
  154. "args": {
  155. "actorId": "$self$",
  156. "x": {
  157. "type": "number",
  158. "value": 1
  159. },
  160. "y": {
  161. "type": "number",
  162. "value": 0
  163. },
  164. "moveType": "horizontal",
  165. "useCollisions": true,
  166. "__comment": true
  167. },
  168. "id": "ddd0a62c-3fde-49c6-8ef8-bba024330df8"
  169. },
  170. {
  171. "command": "EVENT_ACTOR_PUSH",
  172. "args": {
  173. "continue": true
  174. },
  175. "id": "23334933-bd00-4ae1-a3b0-b2de1a33850f"
  176. }
  177. ],
  178. "false": [
  179. {
  180. "command": "EVENT_ACTOR_MOVE_RELATIVE",
  181. "args": {
  182. "actorId": "$self$",
  183. "x": {
  184. "type": "property",
  185. "target": "player",
  186. "property": "pxpos"
  187. },
  188. "y": {
  189. "type": "number",
  190. "value": 0
  191. },
  192. "moveType": "horizontal",
  193. "useCollisions": true
  194. },
  195. "id": "e3b00e10-37df-4fa8-9e1a-42e11d23430f"
  196. }
  197. ]
  198. },
  199. "id": "4c1b2cec-0f74-48dc-a84c-e3a32a991f51"
  200. }
  201. ],
  202. "false": [
  203. {
  204. "command": "EVENT_IF",
  205. "args": {
  206. "condition": {
  207. "type": "gt",
  208. "valueA": {
  209. "type": "property",
  210. "target": "player",
  211. "property": "pxpos"
  212. },
  213. "valueB": {
  214. "type": "property",
  215. "target": "$self$",
  216. "property": "pxpos"
  217. }
  218. },
  219. "__collapseElse": false,
  220. "__collapse": false
  221. },
  222. "children": {
  223. "true": [
  224. {
  225. "command": "EVENT_ACTOR_MOVE_RELATIVE",
  226. "args": {
  227. "actorId": "$self$",
  228. "x": {
  229. "type": "number",
  230. "value": -1
  231. },
  232. "y": {
  233. "type": "number",
  234. "value": 0
  235. },
  236. "moveType": "horizontal",
  237. "useCollisions": true,
  238. "__comment": true,
  239. "__collapse": true
  240. },
  241. "id": "fef06e94-31a4-4a22-a047-30ee8f8fbf2e"
  242. },
  243. {
  244. "command": "EVENT_ACTOR_PUSH",
  245. "args": {
  246. "continue": true
  247. },
  248. "id": "b053dbd9-c2f0-4e4a-bd9e-576a43ded6cc"
  249. }
  250. ],
  251. "false": [
  252. {
  253. "command": "EVENT_ACTOR_MOVE_RELATIVE",
  254. "args": {
  255. "actorId": "$self$",
  256. "x": {
  257. "type": "property",
  258. "target": "player",
  259. "property": "pxpos"
  260. },
  261. "y": {
  262. "type": "number",
  263. "value": 0
  264. },
  265. "moveType": "horizontal",
  266. "useCollisions": true
  267. },
  268. "id": "d81eb6cb-a818-4781-9fef-d2a35cbf6448"
  269. }
  270. ]
  271. },
  272. "id": "c2885866-d3ed-4cc1-8bc3-ceececbb23a1"
  273. }
  274. ]
  275. },
  276. "id": "f9212125-f118-419b-b8e3-adf44e6490da"
  277. }
  278. ],
  279. "false": []
  280. },
  281. "id": "c2f0cdcc-f9e9-49bf-8d9c-f62a542f1eb7"
  282. }
  283. ],
  284. "hit1Script": [],
  285. "hit2Script": [],
  286. "hit3Script": []
  287. }