[Solved] How to pick the sprites around a sprite

Get help using Construct 2

Post » Thu Mar 05, 2015 7:45 pm

I have a detailed isometric layout. When my game token is dropped on a tile, the 3 tiles in front of it, closer to you, need to be picked so the z-index of the token can be set correctly to display in front or back of the tiles in front. They might be taller. Follow?

So how can I pick the sprites that are immediately next to, and around the current sprite?
Last edited by locohost on Thu Mar 05, 2015 10:17 pm, edited 1 time in total.
B
14
S
4
Posts: 297
Reputation: 1,637

Post » Thu Mar 05, 2015 8:09 pm

Frosty Elk AB
www.frostyelk.se
Have no fear, We come in peace!
B
13
S
3
G
1
Posts: 106
Reputation: 1,169

Post » Thu Mar 05, 2015 8:28 pm

For searches in the future, this is my function. It's working well on my isometric layout. I'm using the tiles_around array as my function return values. Since we can't return more than one value.

C2PickSurroundingTiles.PNG
You do not have the required permissions to view the files attached to this post.
B
14
S
4
Posts: 297
Reputation: 1,637


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 10 guests