From 2fad000d4ce6617464660259934e2b689cef4f6f Mon Sep 17 00:00:00 2001 From: sOlaris38 Date: Sat, 5 Dec 2020 16:41:46 +0100 Subject: [PATCH] --- objects/oMonster/Draw_64.gml | 1 + objects/oMonster/Step_0.gml | 2 +- objects/oMonster/oMonster.yy | 1 + rooms/rTest/rTest.yy | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 objects/oMonster/Draw_64.gml diff --git a/objects/oMonster/Draw_64.gml b/objects/oMonster/Draw_64.gml new file mode 100644 index 0000000..a2fbd22 --- /dev/null +++ b/objects/oMonster/Draw_64.gml @@ -0,0 +1 @@ +draw_text(16,16,dureeDeplacement); \ No newline at end of file diff --git a/objects/oMonster/Step_0.gml b/objects/oMonster/Step_0.gml index 20fea39..8857824 100644 --- a/objects/oMonster/Step_0.gml +++ b/objects/oMonster/Step_0.gml @@ -2,7 +2,7 @@ if dureeDeplacement != 0 { x += deplaceHorizontal; - y += deplacementVertical; + y += deplaceVertical; dureeDeplacement --; } else { diff --git a/objects/oMonster/oMonster.yy b/objects/oMonster/oMonster.yy index 18557cc..a82c7eb 100644 --- a/objects/oMonster/oMonster.yy +++ b/objects/oMonster/oMonster.yy @@ -20,6 +20,7 @@ "eventList": [ {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"oMonster","path":"objects/oMonster/oMonster.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, {"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"parent":{"name":"oMonster","path":"objects/oMonster/oMonster.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"parent":{"name":"oMonster","path":"objects/oMonster/oMonster.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [ {"varType":0,"value":"0","rangeEnabled":false,"rangeMin":0.0,"rangeMax":10.0,"listItems":[],"multiselect":false,"filters":[],"resourceVersion":"1.0","name":"hp","tags":[],"resourceType":"GMObjectProperty",}, diff --git a/rooms/rTest/rTest.yy b/rooms/rTest/rTest.yy index 31115c2..604f9d3 100644 --- a/rooms/rTest/rTest.yy +++ b/rooms/rTest/rTest.yy @@ -15,6 +15,7 @@ "layers": [ {"instances":[ {"properties":[],"isDnd":false,"objectId":{"name":"oPlayer","path":"objects/oPlayer/oPlayer.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":0.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":160.0,"y":64.0,"resourceVersion":"1.0","name":"inst_564B33A2","tags":[],"resourceType":"GMRInstance",}, + {"properties":[],"isDnd":false,"objectId":{"name":"oMonsterMelee","path":"objects/oMonsterMelee/oMonsterMelee.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":0.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":192.0,"y":96.0,"resourceVersion":"1.0","name":"inst_601A75EA","tags":[],"resourceType":"GMRInstance",}, ],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Instances","tags":[],"resourceType":"GMRInstanceLayer",}, {"spriteId":null,"colour":4289967027,"x":0,"y":0,"htiled":false,"vtiled":false,"hspeed":0.0,"vspeed":0.0,"stretch":false,"animationFPS":15.0,"animationSpeedType":0,"userdefinedAnimFPS":false,"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Background","tags":[],"resourceType":"GMRBackgroundLayer",}, ], @@ -23,6 +24,7 @@ "inheritCode": false, "instanceCreationOrder": [ {"name":"inst_564B33A2","path":"rooms/rTest/rTest.yy",}, + {"name":"inst_601A75EA","path":"rooms/rTest/rTest.yy",}, ], "inheritCreationOrder": false, "sequenceId": null,