Isometrics!

Get help using Construct 2

Post » Mon Mar 28, 2016 10:01 am

Hi Guys!

I know isometrics is a tricky subject to tackle with Construct 2, however here goes.
I've got a basic isometric set up (see below capx file), which I will add the grid reference translations to at a later date.

However, what I am wondering is, in this example, if I were to add an object say in the centre of the grid, how would I make the yellow marker move behind it and in front of it accordingly?

I've started by using layers (the grid layer is layer 0, obstacles are layer 2), whereby layer 1 represents being behind an object, and layer 3 represents in front of the object, but that may be tricky for multiple obstacles?

Also, the yellow marker shouldn't be able to pass through the grid reference where the object is (this shouldn't be a problem if I use blacked out squares....

So, an easier explanation:

How would I make the object so that the player marker can walk in front / behind it? (this will have to apply to walls and doors, too)

Thanks!

CAPX: https://www.dropbox.com/s/rqjkhvkoebdf6 ... .capx?dl=0
B
6
Posts: 30
Reputation: 298

Post » Mon Mar 28, 2016 10:34 am

Can't you simply set objects Z order by their y position? So those higher up the screen are drawn before those below them?
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Mon Mar 28, 2016 10:42 am

rexrainbow released plugins to help you with that.

like:
forum/plugin-isometric-z-ordering-based-on-y_t64466
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Mar 28, 2016 11:40 am

thanks guys!
Using the plug in, I've got it working, but there is still no solid instance
However, I think I may know how to do this
I'll upload what I have so far, so you can see my progress

CAPX: https://www.dropbox.com/s/rqjkhvkoebdf6 ... .capx?dl=0
B
6
Posts: 30
Reputation: 298

Post » Mon Mar 28, 2016 12:39 pm

can you attach plugin too ?
B
4
Posts: 2
Reputation: 210

Post » Mon Mar 28, 2016 1:06 pm

B
6
Posts: 30
Reputation: 298

Post » Mon Mar 28, 2016 3:50 pm

First: look at the collision polygones. I changed them all to be isometric. Meaning, they only have to match the floor. After that all is easy. You do not need all the ghost objects no more.

Secondly: The easy solution is always the same. Remember the objects coordinates. Move the object. Is the move illegal? ... then move it back to where it came from.

https://
drive.google.com/open?id=0B1SSuCVV8v74NzdvTGRRZXBGZ1U
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Mar 28, 2016 5:25 pm

AHA!
That is EXACTLY what I am after!

Thanks!
B
6
Posts: 30
Reputation: 298


Return to How do I....?

Who is online

Users browsing this forum: Christmas, dop2000 and 46 guests