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.

Newcomers DBPro Corner / how to stop a loop

Author
Message
paulhenry
16
Years of Service
User Offline
Joined: 20th Jun 2008
Location:
Posted: 4th Feb 2009 09:58
Can you tell me if I want to stop a objects loop when the upkey is pressed what code would i use,i tried using (loop end object 1)and(stop loop object 1)but it wont run.
Many thanks.
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 4th Feb 2009 11:07
stop object objID.

"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.
paulhenry
16
Years of Service
User Offline
Joined: 20th Jun 2008
Location:
Posted: 4th Feb 2009 11:15 Edited at: 4th Feb 2009 11:16
Thanks,but it does not reset the animation,sorry i forgot to mention this as well,I want the animation to reset to frame 1 after up key is pressed.I tried stop object 1 with anim frames but it wont run.
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 4th Feb 2009 11:29
Ok, then you would use set object frame objID, 0 after the stop object call.

"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.
paulhenry
16
Years of Service
User Offline
Joined: 20th Jun 2008
Location:
Posted: 4th Feb 2009 11:33
Brill,that works excellent.Thanks very much.

Login to post a reply

Server time is: 2024-09-28 02:32:40
Your offset time is: 2024-09-28 02:32:40