How do I Loop "for each tile", possible?

Get help using Construct 2

Post » Thu Jun 16, 2016 1:56 am

Hello,

Is it possible to loop for each specific tile from tileset, ie tile no9 etc? Thx
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Thu Jun 16, 2016 8:25 am

Make a nested x & y loop.

Compare to the expression.
TileAt(x, y)
Return the tile ID at a position in the tilemap. Note the position is given in tiles, not layout co-ordinates. If the tile at the given position is empty (has been erased), the expression returns -1.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Jun 16, 2016 3:13 pm

99Instances2Go wrote:Make a nested x & y loop.

Compare to the expression.
TileAt(x, y)
Return the tile ID at a position in the tilemap. Note the position is given in tiles, not layout co-ordinates. If the tile at the given position is empty (has been erased), the expression returns -1.

Awesome, thanks
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests