How to make a powerup which you can pick up and lasts for a few seconds?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 20xxdd20

I want to make a powerup which you pick up and changes the speed of the player but couldn’t figure out how to make it so it only lasts for like 30 seconds.

:bust_in_silhouette: Reply From: flurick

There is a timer node you could use to count, the OS object has a a couple of different timestamp functions that are helpfull, or you could count the process delta.