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: 265
Reputation: 3,696

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: 450
Reputation: 4,276


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests