diff --git a/objects/oTrou/Collision_oPlayer.gml b/objects/oTrou/Collision_oPlayer.gml new file mode 100644 index 0000000..2ca09de --- /dev/null +++ b/objects/oTrou/Collision_oPlayer.gml @@ -0,0 +1,2 @@ +hit (self, other, 10); +room_goto(asset_get_index("r" + string(oGame.tableau[oGame.posX, oGame.posY]))); \ No newline at end of file diff --git a/objects/oTrou/oTrou.yy b/objects/oTrou/oTrou.yy index 98c872e..7ddf665 100644 --- a/objects/oTrou/oTrou.yy +++ b/objects/oTrou/oTrou.yy @@ -1,7 +1,10 @@ { - "spriteId": null, + "spriteId": { + "name": "sTrouDetect", + "path": "sprites/sTrouDetect/sTrouDetect.yy", + }, "solid": false, - "visible": true, + "visible": false, "spriteMaskId": null, "persistent": false, "parentObjectId": null, @@ -17,7 +20,9 @@ "physicsStartAwake": true, "physicsKinematic": false, "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": [], "overriddenProperties": [], "parent": {