How do I fix this?

Get help using Construct 2

Post » Sun Nov 16, 2014 10:42 am

Image
If player have more then 1 coin he can buy a new screen. And he must do it only once. But every time he touches sprite 11 he lose 1 coin. How can I fix this?
B
5
Posts: 23
Reputation: 275

Post » Sun Nov 23, 2014 10:36 am

I would create a third condition for buying the new screen, which could either be a global or instance variable.

For example, in order for a player to buy a new screen, I'm assuming the action has 2 conditions, 1) he touches the sprite, 2) he has more more than one coin. What I would suggest doing is creating another action when the screen is bought that sets a variable (for example we'll call it 'bought' to 1) and you give the event a third condition that 'bought' must not be equal to 1.

Sorry if this doesn't make too much sense, I hope it helps out a bit!
B
10
S
1
Posts: 72
Reputation: 1,015


Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish and 15 guests