How do I Trade Variables? [Solved]

Just started using Construct 2? Post your questions here

Post » Sun Aug 07, 2016 6:32 am

Okay, I feel this should be easy but for the life of me I can't figure out how to properly do it.

I'm looking to make it so that you can hit a Reset button and all the points you have spent will be refunded and they will be added back to points available.
My approach is creating two Global variables:
-PointsSpent
-PointsAvailable

Whenever they add a point to their stats, +1 to PointsSpent and -1 to PointsAvailable.. got that.

But when they hit reset, how can I make it so that I take all the Points Spent and add them to Points Available and then afterwards, put PointsSpent to 0?

EDIT: Solved it.
B
5
S
1
G
1
Posts: 8
Reputation: 841

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests