profondeur des instances
This commit is contained in:
parent
18dafe2f07
commit
f9dffe68f1
4 changed files with 11 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
// deplacement monstre
|
// deplacement monstre
|
||||||
|
depth = -bbox_bottom;
|
||||||
|
|
||||||
if (touche == 0) {
|
if (touche == 0) {
|
||||||
if dureeDeplacement != 0 {
|
if dureeDeplacement != 0 {
|
||||||
|
|
|
@ -5,6 +5,7 @@ keyDown = keyboard_check(vk_down) or keyboard_check(ord("S"));
|
||||||
|
|
||||||
|
|
||||||
// Déplacement du joueur
|
// Déplacement du joueur
|
||||||
|
depth = -bbox_bottom;
|
||||||
|
|
||||||
deplaceHorizontal = keyRight - keyLeft;
|
deplaceHorizontal = keyRight - keyLeft;
|
||||||
deplaceVertical = keyDown - keyUp;
|
deplaceVertical = keyDown - keyUp;
|
||||||
|
|
|
@ -87,6 +87,9 @@
|
||||||
{"properties":[],"isDnd":false,"objectId":{"name":"oWall","path":"objects/oWall/oWall.yy",},"inheritCode":true,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":{"name":"inst_35D0D","path":"rooms/rType/rType.yy",},"frozen":false,"ignore":false,"inheritItemSettings":true,"x":400.0,"y":16.0,"resourceVersion":"1.0","name":"inst_35D0D","tags":[],"resourceType":"GMRInstance",},
|
{"properties":[],"isDnd":false,"objectId":{"name":"oWall","path":"objects/oWall/oWall.yy",},"inheritCode":true,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":{"name":"inst_35D0D","path":"rooms/rType/rType.yy",},"frozen":false,"ignore":false,"inheritItemSettings":true,"x":400.0,"y":16.0,"resourceVersion":"1.0","name":"inst_35D0D","tags":[],"resourceType":"GMRInstance",},
|
||||||
{"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":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":224.0,"y":112.0,"resourceVersion":"1.0","name":"inst_1F99BFFE","tags":[],"resourceType":"GMRInstance",},
|
{"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":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":224.0,"y":112.0,"resourceVersion":"1.0","name":"inst_1F99BFFE","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":320.0,"y":80.0,"resourceVersion":"1.0","name":"inst_45379430","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":320.0,"y":80.0,"resourceVersion":"1.0","name":"inst_45379430","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":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":304.0,"y":160.0,"resourceVersion":"1.0","name":"inst_291A1015","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":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":128.0,"y":144.0,"resourceVersion":"1.0","name":"inst_7CD6A298","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":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":160.0,"y":64.0,"resourceVersion":"1.0","name":"inst_51EBEA4D","tags":[],"resourceType":"GMRInstance",},
|
||||||
],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":true,"inheritLayerSettings":true,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Instances","tags":[],"resourceType":"GMRInstanceLayer",},
|
],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":true,"inheritLayerSettings":true,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Instances","tags":[],"resourceType":"GMRInstanceLayer",},
|
||||||
{"assets":[],"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":true,"inheritLayerSettings":true,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Assets_1","tags":[],"resourceType":"GMRAssetLayer",},
|
{"assets":[],"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":true,"inheritLayerSettings":true,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Assets_1","tags":[],"resourceType":"GMRAssetLayer",},
|
||||||
{"tilesetId":{"name":"TileSet1","path":"tilesets/TileSet1/TileSet1.yy",},"x":0,"y":0,"tiles":{"SerialiseWidth":27,"SerialiseHeight":15,"TileSerialiseData":[
|
{"tilesetId":{"name":"TileSet1","path":"tilesets/TileSet1/TileSet1.yy",},"x":0,"y":0,"tiles":{"SerialiseWidth":27,"SerialiseHeight":15,"TileSerialiseData":[
|
||||||
|
@ -182,6 +185,9 @@
|
||||||
{"name":"inst_35D0D","path":"rooms/r1/r1.yy",},
|
{"name":"inst_35D0D","path":"rooms/r1/r1.yy",},
|
||||||
{"name":"inst_1F99BFFE","path":"rooms/r1/r1.yy",},
|
{"name":"inst_1F99BFFE","path":"rooms/r1/r1.yy",},
|
||||||
{"name":"inst_45379430","path":"rooms/r1/r1.yy",},
|
{"name":"inst_45379430","path":"rooms/r1/r1.yy",},
|
||||||
|
{"name":"inst_291A1015","path":"rooms/r1/r1.yy",},
|
||||||
|
{"name":"inst_7CD6A298","path":"rooms/r1/r1.yy",},
|
||||||
|
{"name":"inst_51EBEA4D","path":"rooms/r1/r1.yy",},
|
||||||
],
|
],
|
||||||
"inheritCreationOrder": true,
|
"inheritCreationOrder": true,
|
||||||
"sequenceId": null,
|
"sequenceId": null,
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
"edgeFiltering": false,
|
"edgeFiltering": false,
|
||||||
"collisionTolerance": 0,
|
"collisionTolerance": 0,
|
||||||
"swfPrecision": 2.525,
|
"swfPrecision": 2.525,
|
||||||
"bbox_left": 9,
|
"bbox_left": 10,
|
||||||
"bbox_right": 23,
|
"bbox_right": 22,
|
||||||
"bbox_top": 8,
|
"bbox_top": 15,
|
||||||
"bbox_bottom": 30,
|
"bbox_bottom": 30,
|
||||||
"HTile": false,
|
"HTile": false,
|
||||||
"VTile": false,
|
"VTile": false,
|
||||||
|
|
Reference in a new issue