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 Discussion / How do you stop an object?

Author
Message
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 6th Mar 2004 19:52
Hi, I'm lee. I've got an object (object 2) moving by using the 'move object....' command and i can't stop it again. I'm using a timer to stop it and i know that the TIMER works. Please could you help me. Thank you. P.S - in the attached code is the command i have at the moment. I know it's stupid but theres no other command i can think of. Cheers.

he who runs away, lives to fight another day
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 6th Mar 2004 20:10
Your object never actually starts moving - it only advances a certain number of units when you call move object. There's no need to stop the object, since it only moved the one time you called the command.

Looking through your code also you call move object with "-0" - this will move your object zero units so it will still stay in the same place.

To get your object to move consistently, for example in a cutscene, use code like this:



"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 6th Mar 2004 20:13
Thanks David. It worked great. It's so obvious now. Everybody who helps me I'm putting in my credits of my game if thatis allright with you.

he who runs away, lives to fight another day
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 6th Mar 2004 20:42
It's fine

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra

Login to post a reply

Server time is: 2025-05-23 08:32:44
Your offset time is: 2025-05-23 08:32:44