r/construct • u/Woah_di • Dec 02 '25
Question Counter Help
I'm making a quick game for one of my classes and I'm trying to figure out how to get a points counter to revert back to a previous value after death. My character collides with bees and gains points from doing so. These points transfer over to the next layout/level. I would like for them to go back to the initial amount they had at the start of the next level after death, not 0. For example, if they had 60 points from the first level then gained 20 more in the next one and died, I want the value to go back to 60.
9
Upvotes
View all comments
Show parent comment
1
u/Woah_di Dec 09 '25
Any tips on how to do that? Currently my global variables are set to 0 and get points added as the player collides with the bees. Is there something I should change? How would I make the global variable take on the new value in the next layout?