transition modifié
This commit is contained in:
parent
8134191c10
commit
39efb8c09f
4 changed files with 26 additions and 3 deletions
|
@ -14,6 +14,8 @@ global.difficulty = 1;
|
||||||
global.minutes = 1;
|
global.minutes = 1;
|
||||||
global.secondes = 20;
|
global.secondes = 20;
|
||||||
global.transition = -1;
|
global.transition = -1;
|
||||||
|
// global.weapon = sSwordh.image_index[0];
|
||||||
|
global.spawn = -1;
|
||||||
|
|
||||||
global.perdu = false;
|
global.perdu = false;
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@ if (global.transition != -1) {
|
||||||
if (posX = 0) posX = 3;
|
if (posX = 0) posX = 3;
|
||||||
else posX --; break;
|
else posX --; break;
|
||||||
}
|
}
|
||||||
|
global.spawn = global.transition;
|
||||||
global.transition = -1;
|
global.transition = -1;
|
||||||
room_goto(asset_get_index("r" + string(tableau[posX, posY])));
|
room_goto(asset_get_index("r" + string(tableau[posX, posY])));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,22 @@
|
||||||
x = room_width / 2;
|
switch (global.spawn) {
|
||||||
|
case -1 :
|
||||||
|
x = 48;
|
||||||
y = room_height / 2;
|
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;
|
||||||
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
"path": "sprites/sTransition/sTransition.yy",
|
"path": "sprites/sTransition/sTransition.yy",
|
||||||
},
|
},
|
||||||
"solid": false,
|
"solid": false,
|
||||||
"visible": true,
|
"visible": false,
|
||||||
"spriteMaskId": null,
|
"spriteMaskId": null,
|
||||||
"persistent": false,
|
"persistent": false,
|
||||||
"parentObjectId": null,
|
"parentObjectId": null,
|
||||||
|
|
Reference in a new issue