How do I replace specific tile with another tile?

Get help using Construct 2

Post » Sat Feb 07, 2015 10:07 am

I'm making a game that requires two different states of caves: one with a candle, and one without. With a candle it's bright inside, without it remains dark.

What I'm trying to accomplish:
"on start of frame", "if hasCandle=true", ...what here?

Is there a way to say "replace all using tile 1 with tile 7, all using tile 2 with tile 8" and etc?
B
25
S
6
G
6
Posts: 259
Reputation: 3,684

Post » Sat Feb 07, 2015 11:47 am

You can do something like this :
tiles.capx


It's not mandatory to use the tileX and tileY variables, it just helps the readability by writing tileX instead of loopindex("x").
You do not have the required permissions to view the files attached to this post.
B
12
S
7
G
7
Posts: 448
Reputation: 4,272


Return to How do I....?

Who is online

Users browsing this forum: Jazz813, OddConfection and 12 guests