scaredghost.gbsres 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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": true,
  12. "collisionGroup": "1",
  13. "script": [],
  14. "startScript": [],
  15. "updateScript": [
  16. {
  17. "command": "EVENT_IF_ACTOR_DIRECTION",
  18. "args": {
  19. "actorId": "$self$",
  20. "direction": {
  21. "type": "direction",
  22. "value": "left"
  23. },
  24. "__collapseElse": false
  25. },
  26. "children": {
  27. "true": [
  28. {
  29. "command": "EVENT_IF_ACTOR_DIRECTION",
  30. "args": {
  31. "actorId": "player",
  32. "direction": {
  33. "type": "direction",
  34. "value": "right"
  35. },
  36. "__collapseElse": false,
  37. "__collapse": true
  38. },
  39. "children": {
  40. "true": [
  41. {
  42. "command": "EVENT_ACTOR_PUSH",
  43. "args": {
  44. "continue": true,
  45. "__collapse": false
  46. },
  47. "id": "4232b47f-1516-4d50-ab3d-a3dc4dddd90c"
  48. }
  49. ],
  50. "false": [
  51. {
  52. "command": "EVENT_ACTOR_MOVE_TO",
  53. "args": {
  54. "actorId": "$self$",
  55. "x": {
  56. "type": "property",
  57. "target": "player",
  58. "property": "xpos"
  59. },
  60. "y": {
  61. "type": "property",
  62. "target": "player",
  63. "property": "ypos"
  64. },
  65. "moveType": "horizontal",
  66. "useCollisions": true,
  67. "__collapse": true
  68. },
  69. "id": "755b6143-ebb8-44a8-89ea-7f55bbc1dc7c"
  70. }
  71. ]
  72. },
  73. "id": "f32e07bf-ee81-4801-920d-31d42e52c838"
  74. }
  75. ],
  76. "false": [
  77. {
  78. "command": "EVENT_IF_ACTOR_DIRECTION",
  79. "args": {
  80. "actorId": "player",
  81. "direction": {
  82. "type": "direction",
  83. "value": "left"
  84. },
  85. "__collapseElse": false,
  86. "__collapse": false
  87. },
  88. "children": {
  89. "true": [
  90. {
  91. "command": "EVENT_ACTOR_PUSH",
  92. "args": {
  93. "continue": true
  94. },
  95. "id": "1a2ee7f5-d155-4206-bbb8-65b3191986c6"
  96. }
  97. ],
  98. "false": [
  99. {
  100. "command": "EVENT_ACTOR_MOVE_TO",
  101. "args": {
  102. "actorId": "$self$",
  103. "x": {
  104. "type": "property",
  105. "target": "player",
  106. "property": "xpos"
  107. },
  108. "y": {
  109. "type": "property",
  110. "target": "player",
  111. "property": "ypos"
  112. },
  113. "moveType": "horizontal",
  114. "useCollisions": true
  115. },
  116. "id": "8734042c-7911-4290-8f06-5c230b12b3ad"
  117. }
  118. ]
  119. },
  120. "id": "d8ea875a-f010-46b7-ba05-3433eaf6debc"
  121. }
  122. ]
  123. },
  124. "id": "2c237aed-fdfe-432d-b536-ff84d56b4500"
  125. }
  126. ],
  127. "hit1Script": [],
  128. "hit2Script": [],
  129. "hit3Script": []
  130. }