Isometric tiled map in array [SOLVED]

Get help using Construct 2

Post » Wed Oct 23, 2013 7:38 pm

Hi.

My goal is to create an isometric map based on the array. I`ve got no problems with basic non-isometric tiled maps, but isometric one is harder.

The result of non-isometric code



for isometric tiles is



Quite psychedelic and interesting, but not what i need now. :)

If i was working on tiled map without arrays, the additional variable for spawning even/uneven rows could be the best decision. In my situation it is impossible or i have a lack of knowledge.

That`s where i need some help: how to spawn the proper isometric tiled map with array?Yozzik2013-10-23 22:21:19
B
8
S
2
Posts: 56
Reputation: 1,021

Post » Wed Oct 23, 2013 10:21 pm

And the problem is solved! :)





P.S. Any optimization ideas?
B
8
S
2
Posts: 56
Reputation: 1,021

Post » Wed Oct 23, 2013 10:48 pm

[QUOTE=Yozzik]P.S. Any optimization ideas?[/QUOTE]

That's a lot of tiles.
Might think about using the tiled background object, unless you're planning on having tiles clickable.
Image ImageImage
B
169
S
50
G
170
Posts: 8,291
Reputation: 108,726

Post » Wed Oct 23, 2013 10:54 pm

Tiled supports isometric maps if you didn't know.
[QUOTE=Yozzik]P.S. Any optimization ideas?[/QUOTE]
Paste 'em!
MadFactory2013-10-23 22:54:44
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Wed Oct 23, 2013 11:10 pm

Tiles are made in this way to store information about the world (resource nodes and other stuff), so tiled background is not the decision (at least if i got you right).

And yes, that`s really a lot of tiles. But i can generate the world once and than just load it from JSON by parts (for example only 2 "screens" around the player`s line of sight).

MadFactory, you mean soft named "Tiled"? I can check it out but can i generate a random world in it?Yozzik2013-10-23 23:11:50
B
8
S
2
Posts: 56
Reputation: 1,021


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, jorgmaquoi, Rable, unicornspitfire and 11 guests