Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / set a timer to delete an object

Author
Message
Mikeygd3
11
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 6th Feb 2014 17:23
i wanna be able to delete an object after its "die" animation has finished playing. anyone have any idea how to?
chafari
Valued Member
19
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 6th Feb 2014 18:32
You had better to hide your object instead of deleting, because you will have errors into the bucle Do/loop unles you put conditions like this:

if object exist(my_object) and object frame(my_object)>end_animation then delete object my_object

Imagine your die animation ends in frame 50 . We can do:



I'm not a grumpy grandpa

Login to post a reply

Server time is: 2025-05-15 01:56:44
Your offset time is: 2025-05-15 01:56:44