Time

heya again

i was wondering if you guys knew how to put a timer on objects. for example i want to create an instance of something and then after a set amount of time, for example 5 seconds, it should just dissapear (or do something else)

does anyone have any idea how this can be done?

If your “objects” are particles it’s easy to make them die out.

If not, maybe direct.task.Timer ? Or maybe task.time?

I’ve had quite some success with ‘doMethodLater’
(panda3d.org/manual/index.php/Tasks)