4
0
Fork 0

coffre ne reapparait plus

This commit is contained in:
sOlaris38 2020-12-06 19:53:51 +01:00
parent a256433cb3
commit 560195ff08
6 changed files with 10 additions and 1 deletions

View file

@ -1,2 +1,3 @@
oGame.coffre[oGame.posX, oGame.posY] = 0;
if (global.weapon < 3) global.weapon ++; if (global.weapon < 3) global.weapon ++;
instance_destroy(self); instance_destroy(self);

View file

@ -0,0 +1 @@
if (oGame.coffre[oGame.posX, oGame.posY] = 0) instance_destroy(self);

View file

@ -22,6 +22,7 @@
"physicsShapePoints": [], "physicsShapePoints": [],
"eventList": [ "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":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": [], "properties": [],
"overriddenProperties": [], "overriddenProperties": [],

View file

@ -18,7 +18,9 @@ for (i = 0; i < 4; i++)
{ {
for(j = 0; j < 4; j++) for(j = 0; j < 4; j++)
{ {
coffre[i][j] = 0;
tableau[i, j] = irandom(10); tableau[i, j] = irandom(10);
if (tableau[i, j] = 9) coffre[i,j] = 1;
} }
} }

View file

@ -48,3 +48,7 @@ with (oPlayer) {
room_goto(rWin); room_goto(rWin);
} }
} }
// ouverture des portes
if (room != rOver and room != rWin and !instance_exists(oMonsterMelee)) oTransition.image_index = 1;

View file

@ -1 +1 @@
global.transition = next; if (image_index = 1) global.transition = next;