coffre ne reapparait plus
This commit is contained in:
parent
a256433cb3
commit
560195ff08
6 changed files with 10 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
|||
oGame.coffre[oGame.posX, oGame.posY] = 0;
|
||||
if (global.weapon < 3) global.weapon ++;
|
||||
instance_destroy(self);
|
1
objects/oChest/Create_0.gml
Normal file
1
objects/oChest/Create_0.gml
Normal file
|
@ -0,0 +1 @@
|
|||
if (oGame.coffre[oGame.posX, oGame.posY] = 0) instance_destroy(self);
|
|
@ -22,6 +22,7 @@
|
|||
"physicsShapePoints": [],
|
||||
"eventList": [
|
||||
{"isDnD":false,"eventNum":0,"eventType":4,"collisionObjectId":{"name":"oPlayer","path":"objects/oPlayer/oPlayer.yy",},"parent":{"name":"oChest","path":"objects/oChest/oChest.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"oChest","path":"objects/oChest/oChest.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
],
|
||||
"properties": [],
|
||||
"overriddenProperties": [],
|
||||
|
|
|
@ -18,7 +18,9 @@ for (i = 0; i < 4; i++)
|
|||
{
|
||||
for(j = 0; j < 4; j++)
|
||||
{
|
||||
coffre[i][j] = 0;
|
||||
tableau[i, j] = irandom(10);
|
||||
if (tableau[i, j] = 9) coffre[i,j] = 1;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,3 +48,7 @@ with (oPlayer) {
|
|||
room_goto(rWin);
|
||||
}
|
||||
}
|
||||
|
||||
// ouverture des portes
|
||||
|
||||
if (room != rOver and room != rWin and !instance_exists(oMonsterMelee)) oTransition.image_index = 1;
|
||||
|
|
|
@ -1 +1 @@
|
|||
global.transition = next;
|
||||
if (image_index = 1) global.transition = next;
|
Reference in a new issue