4
0
Fork 0

transition modifié

This commit is contained in:
sOlaris38 2020-12-06 17:28:28 +01:00
parent 8134191c10
commit 39efb8c09f
4 changed files with 26 additions and 3 deletions

View file

@ -14,6 +14,8 @@ global.difficulty = 1;
global.minutes = 1;
global.secondes = 20;
global.transition = -1;
// global.weapon = sSwordh.image_index[0];
global.spawn = -1;
global.perdu = false;

View file

@ -28,6 +28,7 @@ if (global.transition != -1) {
if (posX = 0) posX = 3;
else posX --; break;
}
global.spawn = global.transition;
global.transition = -1;
room_goto(asset_get_index("r" + string(tableau[posX, posY])));
}

View file

@ -1,2 +1,22 @@
x = room_width / 2;
y = room_height / 2;
switch (global.spawn) {
case -1 :
x = 48;
y = room_height / 2;
break;
case 2 :
x = room_width / 2;
y = 48;
break;
case 3 :
x = room_width - 48;
y = room_height / 2;
break;
case 0 :
x = room_width / 2;
y = room_height - 48;
break;
case 1 :
x = 48;
y = room_height / 2;
break;
}

View file

@ -4,7 +4,7 @@
"path": "sprites/sTransition/sTransition.yy",
},
"solid": false,
"visible": true,
"visible": false,
"spriteMaskId": null,
"persistent": false,
"parentObjectId": null,