Help with isometric z order

For questions about using Classic.

Post » Fri Sep 24, 2010 11:41 am

Hi, i'm new to Construct and have recently started a game.

I eventually intend to make an action adventure game with an isometric perspective, inventory, dialogue and a working combat system. Although i'll deal with those challenges when I come to them!

So far I have several sprites (player, npc and some scenery) and working collision - although I forsee future problems with the way i've done it.
But when it comes to implementing a way to get the sprites overlapping correctly i'm completely stuck. I've tried to create some on overlapping events so that the player sprite is placed behind terrain when overlapping and behind npcs when overlapping. I works for the terrain but not the npc.
Am I using else conditions incorrectly?

I'm aware this is likely a common newb problem, but please take a look - any help or advice would be much appreciated! :)

http://www.mediafire.com/?ljy4yyv2qwe7w2p
B
1
G
2
Posts: 2
Reputation: 629

Post » Fri Sep 24, 2010 2:04 pm

Isometric sorting example:

viewtopic.php?f=4&t=7180

:)
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Sat Sep 25, 2010 1:21 pm

Thank you - I'm embarassed I didn't find it before I posted!

Although I must admit I don't understand how it works - it will take me some time to get to grips with arrays.

For now i've just used an event that sends each object in the terrain family to the front based on a z variable which is determined by its y position. It was used in Scidave's Adventure tutorial. It seems to work fine at the moment and will likely suffice as long as I don't do complex elevation stuff. Fine for a simple game perhaps, but i'll have to learn more if I want to do anything more complicated.
B
1
G
2
Posts: 2
Reputation: 629


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests