(fnaf clone) how do I make a number stop at a certain number/power?
Koridai011
Member Posts: 32
on my 5 nights at freddy clone, I was make a power supply every time use used doors long the power will go off. but unlike fnaf where you have to wait for the next day to get your power back, my doors can regenerate if not using them. anyway, the power keeps adding greater than 100. how do I make it stop doing that?
Comments
Place the rules that control how power is added into another rule that says: When power is < 100.
Hey @KoridaiGames,
try this:
that will take to long for me to text the rule for you. and i cant bring up an image. sorry
hey it works thanks
Wait wait, i still have a another problem. if i close one door it drops 95 and back to 100 repeatidly. but if if close two door its fine. so i still need help
when my doors close its: game.power to (game.power-5)
and
when my doors open its: game.power to min(game.power+1,100)
Easter egg chocolate trousers.
Well the reason why is because you still have one of the doors open which is triggering the rule to add while another door is closed which is triggering the rule to subtract.
What exactly do you want to happen when both doors are closed; when both are open; and when one is a pen and one is closed? 3 different things could be happening!
Now those sound delicious!!!
Yes, indeed, with marshmallow pockets too !
no ™ on that @Socks? There is not even a reference to it in all of Google!
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
We've had to keep it secret, you know, in case the government are watching us.
Well, I'm on vacation right now. Talk to you later
i've got it now,thanks!
That's nice ........