Boost up/ Power up?
Dooki
Member Posts: 247
Hey all,
How do you create power ups? I imagine spawning a power actor but I need help it getting it to speed up my actor for a few seconds. I also have a timer for the level. How would I create a power up to add time or push back the timer?
Thanks!
How do you create power ups? I imagine spawning a power actor but I need help it getting it to speed up my actor for a few seconds. I also have a timer for the level. How would I create a power up to add time or push back the timer?
Thanks!
Comments
I imagine that every second you make your timer = timer +1
When your player collides with power up:
change attribute timer to timer + 20 (or however much you want)
Or
change attributo timer to timer-20 (to subtract time)
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
OK, I've done this change for my gamelives. So do I create an attribute named "Timer?"
Do you have any insight into a speed boost? My actor moves at a certain speed. When he collides with the power up he gets a temporary boost (change velocity?).