[feature request] Tilemaps state as index

Discussion and feedback on Construct 2

Post » Sat Apr 18, 2015 6:32 pm

It would be nice if we didn't have to make a new condition to set the state of a tile each time.
If it could set the state as an index... that would be great.
0=0
1=90
2=180 you get the idea
Image ImageImage
B
168
S
50
G
169
Posts: 8,281
Reputation: 108,191

Post » Sat Apr 18, 2015 10:47 pm

Yes, please.
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,597
Reputation: 34,821

Post » Sun Jun 14, 2015 9:40 pm

Bump. @Ashley

also, I just start making my level editor and noticed that there is no way to return the tile state from tilemap as expression :shock:



Edited
Last edited by shinkan on Fri Jun 19, 2015 3:52 pm, edited 1 time in total.
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,597
Reputation: 34,821

Post » Fri Jun 19, 2015 2:42 pm

You can already access the tile state using the "Compare tile state at" condition.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Fri Jun 19, 2015 3:32 pm

Ashley wrote:You can already access the tile state using the "Compare tile state at" condition.


Yeah, but it's not helpfull if you want to fill an array with tiles and their states :)
You need to make 8 event to get tilestates from each tile while retrieving data from Tilemap to Array and then make another 8 reversed events to send back data from array to Tilemap.

i think I made my first statement not complete so let me rephrase that "there is no way to return the tile state from tilemap as expression"

Like simple example: set variable to Tilemap.TileStateAt(TileX, TileY) :)
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,597
Reputation: 34,821

Post » Fri Jun 19, 2015 3:39 pm

You could easily wrap those 8 events in a function though, right?
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Fri Jun 19, 2015 3:51 pm

Ashley wrote:You could easily wrap those 8 events in a function though, right?


Not really, because you can't properly set a function parameter to proper tilestate.
It's not a big issue or anything, it's just annoying that I need to make all of that while I could make just one event instead.


Image

Image
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,597
Reputation: 34,821

Post » Sat Jun 20, 2015 2:32 am

It's much easier to work with the json, isn't it?
Sorry for my bad english, but I really do my best! And use and check with Google Translator.
B
10
S
4
G
1
Posts: 158
Reputation: 1,303


Return to Construct 2 General

Who is online

Users browsing this forum: Jayjay and 8 guests