enemy_patrol.gbsres 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "_resourceType": "script",
  3. "id": "f02557dd-6690-4813-aa19-51bb07eb3fda",
  4. "name": "Enemy Patrol",
  5. "description": "",
  6. "variables": {
  7. "V0": {
  8. "id": "V0",
  9. "name": "XStartOffset",
  10. "passByReference": false
  11. },
  12. "V1": {
  13. "id": "V1",
  14. "name": "XEndOffset",
  15. "passByReference": false
  16. }
  17. },
  18. "actors": {
  19. "0": {
  20. "id": "0",
  21. "name": "Ghost"
  22. }
  23. },
  24. "symbol": "script_1",
  25. "script": [
  26. {
  27. "command": "EVENT_LOOP",
  28. "args": {},
  29. "children": {
  30. "true": [
  31. {
  32. "command": "EVENT_ACTOR_MOVE_RELATIVE",
  33. "args": {
  34. "actorId": "0",
  35. "x": {
  36. "type": "variable",
  37. "value": "V0"
  38. },
  39. "y": {
  40. "type": "number",
  41. "value": 0
  42. },
  43. "moveType": "horizontal",
  44. "useCollisions": false
  45. },
  46. "id": "0c4eca3b-5023-497a-ba9a-8ed7ddea4326"
  47. },
  48. {
  49. "command": "EVENT_WAIT",
  50. "args": {
  51. "time": 0.5,
  52. "frames": 16,
  53. "__collapse": false,
  54. "units": "frames"
  55. },
  56. "id": "e4832cdd-e11b-494e-b32c-c6d816050838"
  57. },
  58. {
  59. "command": "EVENT_ACTOR_MOVE_RELATIVE",
  60. "args": {
  61. "actorId": "0",
  62. "x": {
  63. "type": "variable",
  64. "value": "V1"
  65. },
  66. "y": {
  67. "type": "number",
  68. "value": 0
  69. },
  70. "moveType": "horizontal",
  71. "useCollisions": false
  72. },
  73. "id": "5c64038b-6930-406f-b88d-7b45e6975faf"
  74. },
  75. {
  76. "command": "EVENT_WAIT",
  77. "args": {
  78. "time": 0.5,
  79. "frames": 16,
  80. "units": "frames"
  81. },
  82. "id": "808bbda1-8178-4650-a094-bb8e67e8a64e"
  83. }
  84. ]
  85. },
  86. "id": "f9ea550c-90c6-4c35-b6b8-394cf1dd8a3e"
  87. }
  88. ]
  89. }