Ajout reset salle quand joueur touche trou
This commit is contained in:
parent
7e5847e017
commit
dbcf8c9c91
2 changed files with 10 additions and 3 deletions
2
objects/oTrou/Collision_oPlayer.gml
Normal file
2
objects/oTrou/Collision_oPlayer.gml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
hit (self, other, 10);
|
||||||
|
room_goto(asset_get_index("r" + string(oGame.tableau[oGame.posX, oGame.posY])));
|
|
@ -1,7 +1,10 @@
|
||||||
{
|
{
|
||||||
"spriteId": null,
|
"spriteId": {
|
||||||
|
"name": "sTrouDetect",
|
||||||
|
"path": "sprites/sTrouDetect/sTrouDetect.yy",
|
||||||
|
},
|
||||||
"solid": false,
|
"solid": false,
|
||||||
"visible": true,
|
"visible": false,
|
||||||
"spriteMaskId": null,
|
"spriteMaskId": null,
|
||||||
"persistent": false,
|
"persistent": false,
|
||||||
"parentObjectId": null,
|
"parentObjectId": null,
|
||||||
|
@ -17,7 +20,9 @@
|
||||||
"physicsStartAwake": true,
|
"physicsStartAwake": true,
|
||||||
"physicsKinematic": false,
|
"physicsKinematic": false,
|
||||||
"physicsShapePoints": [],
|
"physicsShapePoints": [],
|
||||||
"eventList": [],
|
"eventList": [
|
||||||
|
{"isDnD":false,"eventNum":0,"eventType":4,"collisionObjectId":{"name":"oPlayer","path":"objects/oPlayer/oPlayer.yy",},"parent":{"name":"oTrou","path":"objects/oTrou/oTrou.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
|
],
|
||||||
"properties": [],
|
"properties": [],
|
||||||
"overriddenProperties": [],
|
"overriddenProperties": [],
|
||||||
"parent": {
|
"parent": {
|
||||||
|
|
Reference in a new issue