Files
Mico27 c3b996c129 Change log:
- Changed fireball direction to go down like the OG (you can still fire with an initial up arc by holding up when firing)
- Adjusted Mario Max velocity to be closer to the OG (Jumping between pipes in 1-1 and Jumping off the ledge of the pipe before the big pit in 8-2 is now possible for example)
- Bloopers are less aggressive
- Moved goombas in 1-2 a bit further after the 1 tile gap
- Jumping off vines in a direction instantly applies max horizontal velocity (makes it easier to jump between vines)
- moved the loading trigger in 8-2 to not be above a pit
2024-11-02 16:02:17 -04:00

313 lines
11 KiB
Plaintext

{
"_resourceType": "script",
"id": "70c96f28-b99f-4a17-a885-b993c8676eb8",
"name": "OnAttack",
"description": "",
"variables": {},
"actors": {
"0": {
"id": "0",
"name": "Fireball 1"
}
},
"symbol": "script_14",
"script": [
{
"command": "EVENT_IF",
"args": {
"condition": {
"type": "eq",
"valueA": {
"type": "variable",
"value": "63"
},
"valueB": {
"type": "number",
"value": 1
}
},
"__collapseElse": false
},
"children": {
"true": [
{
"command": "EVENT_SET_VALUE",
"args": {
"variable": "45",
"value": {
"type": "number",
"value": 2
},
"__collapse": true
},
"id": "053905c9-49d6-47d1-8352-6923fa975c28"
},
{
"command": "EVENT_GBVM_SCRIPT",
"args": {
"script": "VM_SET_CONST_UINT8 _que_attacking, 1",
"references": [],
"__collapse": true
},
"id": "99311129-b83f-474b-a0a7-6843b7cd5fe4"
},
{
"command": "EVENT_WAIT",
"args": {
"time": 0.5,
"frames": 20,
"units": "frames",
"__collapse": true
},
"id": "82c6fc7d-19f1-48c3-85ce-f6c7133bd1d5"
},
{
"command": "EVENT_GBVM_SCRIPT",
"args": {
"script": "VM_SET_CONST_UINT8 _que_attacking, 0",
"references": [],
"__collapse": true
},
"id": "20b0b4a2-479a-4513-aa31-425e2299ae90"
}
],
"false": [
{
"command": "EVENT_IF",
"args": {
"condition": {
"type": "eq",
"valueA": {
"type": "variable",
"value": "24"
},
"valueB": {
"type": "number",
"value": 2
}
},
"__collapseElse": true,
"__collapse": false
},
"children": {
"true": [
{
"command": "EVENT_ACTOR_GET_POSITION",
"args": {
"actorId": "$self$",
"vectorX": "14",
"vectorY": "1",
"units": "pixels"
},
"id": "7b707cfd-0c60-47a2-bca9-2dc87a49e7fc"
},
{
"command": "EVENT_GET_ACTOR_STATE",
"args": {
"actorId": "0",
"variable": "40",
"__collapse": false,
"__comment": false
},
"id": "cb63737b-4fa6-4bdf-acf0-fbe85c67e714"
},
{
"command": "EVENT_IF",
"args": {
"condition": {
"type": "or",
"valueA": {
"type": "eq",
"valueA": {
"type": "variable",
"value": "40"
},
"valueB": {
"type": "number",
"value": 0
}
},
"valueB": {
"type": "eq",
"valueA": {
"type": "variable",
"value": "40"
},
"valueB": {
"type": "number",
"value": 255
}
}
},
"__collapseElse": true,
"__collapse": false,
"__comment": false
},
"children": {
"true": [
{
"command": "EVENT_SET_ACTOR_STATE",
"args": {
"actorId": "0",
"stateId": {
"type": "number",
"value": 1
},
"__collapse": true
},
"id": "6f1ceda4-251b-449f-988f-389f1d96f802"
},
{
"command": "EVENT_IF_ACTOR_DIRECTION",
"args": {
"actorId": "$self$",
"direction": {
"type": "direction",
"value": "right"
},
"__collapseElse": false,
"__collapse": true
},
"children": {
"true": [
{
"command": "EVENT_ACTOR_SET_POSITION",
"args": {
"actorId": "0",
"x": {
"type": "expression",
"value": "$14$ + 8"
},
"y": {
"type": "variable",
"value": "1"
},
"units": "pixels"
},
"id": "73b6f296-8976-439b-89de-47533ac93e18"
},
{
"command": "EVENT_SET_ACTOR_X_VELOCITY",
"args": {
"actorId": "0",
"xVelocity": {
"type": "number",
"value": 32
},
"__collapse": false
},
"id": "49817bab-fa91-4e2e-a5e9-43b0a05226c4"
}
],
"false": [
{
"command": "EVENT_ACTOR_SET_POSITION",
"args": {
"actorId": "0",
"x": {
"type": "expression",
"value": "$14$"
},
"y": {
"type": "variable",
"value": "1"
},
"units": "pixels"
},
"id": "bf550ced-ddb9-424c-9d8a-7f28e606e972"
},
{
"command": "EVENT_SET_ACTOR_X_VELOCITY",
"args": {
"actorId": "0",
"xVelocity": {
"type": "number",
"value": -32
},
"__collapse": false
},
"id": "925b6943-76be-471c-a1d1-31be513ce809"
}
]
},
"id": "167c51ff-2ec0-4e9e-983d-463d2036dfb6"
},
{
"command": "EVENT_IF_INPUT",
"args": {
"input": [
"up"
],
"__collapseElse": false,
"__collapse": true
},
"children": {
"true": [
{
"command": "EVENT_SET_ACTOR_Y_VELOCITY",
"args": {
"actorId": "0",
"yVelocity": {
"type": "number",
"value": -16
},
"__collapse": true
},
"id": "91bdc4b1-3674-4b3e-b747-ed0518f8f76a"
}
],
"false": [
{
"command": "EVENT_SET_ACTOR_Y_VELOCITY",
"args": {
"actorId": "0",
"yVelocity": {
"type": "number",
"value": 16
},
"__collapse": true
},
"id": "183c682e-8bb6-40b0-b270-a6e8a3620a2a"
}
]
},
"id": "61cce9cb-4170-41a8-869d-c2222f0d5967"
},
{
"command": "EVENT_ACTOR_ACTIVATE",
"args": {
"actorId": "0",
"__collapse": true
},
"id": "1b831217-3669-4dfb-8efd-39018698c54b"
},
{
"command": "EVENT_SOUND_PLAY_EFFECT",
"args": {
"type": "7853fa6c-03d0-457f-a0f5-8cf2ea755478",
"priority": "medium",
"pitch": 4,
"frequency": 200,
"duration": 0.5,
"wait": true,
"effect": 0,
"__collapse": true
},
"id": "6099c642-aa28-43ef-8602-307710dbd2c9"
}
],
"false": []
},
"id": "a075a6e9-0f9c-4348-9642-1dc90f1ed759"
}
],
"false": []
},
"id": "5b373894-f606-42ba-a66c-27d22ca1f4cb"
}
]
},
"id": "b350b584-18dc-4c17-ab77-90d6e73ad2b6"
}
]
}