|
Post by Xenith on Aug 11, 2004 14:38:14 GMT -5
well the problem is kinda hard to explain but i'll get right to the question, if my room is 9x9 tiles ( just an example ) is it possible to make the depth for each x coordinate tile to be added one? like thi... 999999999 888888888 777777777 666666666 555555555 444444444 333333333 222222222 111111111
so that instead of making a new layer of depth for each of the tiles in the room editor, i could just use some sort of code
thanks for the help and the time
|
|
|
Post by IsmAvatar on Aug 11, 2004 15:19:14 GMT -5
yeah, but you'll have to do it in code, it can't be done in the editor. Look up the code in the manual under the graphics area of GML.
|
|
|
Post by Xenith on Aug 11, 2004 17:17:16 GMT -5
i'm having trouble figuring out how to do it though, i checked out the manual but i need some hints
cuz it doesn't say how to change the tile's depth i'd think it would be something like tile.depth or something, can you please help me?
|
|
|
Post by IsmAvatar on Aug 13, 2004 13:12:26 GMT -5
Firstly, it might use the term "layer" secondly, it can be hard to call a tile in code. You need to either know it's current layer, it's x and y coordinates, or both. I normally just put an object right under the tile for controlling the tile. I set all tiles at the same layer, so it's easier to call them (then you only have to know x and y) I think I might have done this for harpg userweb.nni.com/cmagicj/harpg1.gmd
|
|
|
Post by Xenith on Aug 13, 2004 14:06:05 GMT -5
mytile = tile_layer_find(-1000000,x,y) tile_set_depth(mytile,-y)
would this be the code? it's for the wall object i'll reply or edit this post when i get it working thanks again.
edit: it works perfectly now i only need to use one layer for most objects, thank you so very much
|
|
|
Post by IsmAvatar on Aug 13, 2004 21:27:46 GMT -5
Glad I could help. (and yes, that guest was me, and yes, I did delete the post, because you edited)
|
|