Question by
bh2101 · Apr 11, 2019 at 02:41 AM ·
parametersbooleans
How to automatically reset a boolean back to false after it meets a requirement and becomes true to execute a task?
You can look at my attached code I’d attached to my main player in my game. Once the player collides with “Zones,” it would set the boolean to true. But what I really want to do is have it wait for two seconds then set it back to false in the same collision statement. The solution I have right now is to put that line to set back to false in another collision, but I want it to set itself back automatically instead of having to require another collision to make reset itself. Your help would be greatly appreciated. Thanks!
screen-shot-2019-04-09-at-94506-pm.png
(294.3 kB)
Comment