I�m prototyping a 2d shootergame with fake 3d depth (think double dragon).
Right know the game knows what z-depth an object has based on what sprite its above, and that works. Problem with that though is that its hella inflexible and complex.
Is there a way to tell an object its z-depth based on what coordinates the object has?
You could create a private variable and tell it the object y, but that would be too exact. I would like Construct to tell the object what position it has every 20 pixels.
So, an object placed x.20 y.460 would have 23 in z-depth.
x.600 y.423 = z-depth 21
x.200 y.469 = z-depth 23
I think you get the point.
I also would like to know if there is a way to measure the distance between two points, that would be really usefull for a multiplayer camera.
ex = Distance between A & B = 100 pixels, the camera would then zoom out a sufficent ammount to cover both players.