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 / Is Loop Object Bugged?

Author
Message
FakeBlood
22
Years of Service
User Offline
Joined: 18th Nov 2002
Location: Alabama, United States
Posted: 22nd Feb 2005 14:59
Saw some posts on this issue but I think most from like 2 years ago.
When I use this command it animates for a while, then stops awhile, then starts again...etc
Usually stops more than it loops. I'd like to know if it's a known bug or just something on my end.
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 22nd Feb 2005 17:51
I've used the darkBasic pro loop and play commands extensively and haven't had any problems so far. I'm still using version 5.2 though. Maybe you have a space at the end of your animation like say you saved 10 frames of animation for your model but used only 8 frames.

You could upload an example program for us to check out.

FakeBlood
22
Years of Service
User Offline
Joined: 18th Nov 2002
Location: Alabama, United States
Posted: 23rd Feb 2005 15:25
The problem I was having was with some birds I made to fly around in my environment. They won't animate continuously, and no I don't have any blank space at the end of my animation, so that's ruled out. I added into my program the ability to control one of the birds, like a player. When I do this the bird animates fine. When it controls itself the problem is there....ALSO my forward and backward controls for my main character stop working after a couple of minutes which I can't figure out either. Does it everytime too after a few minutes of play.
Here's what I have of my little program I'm working on. Too much to upload the Media epsecially since I'm on 56k. Only about 7MB total but like I said...56k..lol

The admiral
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 23rd Feb 2005 16:07
if your loop object command is in the main loop it could have some problems but generally these kinds of issues are how it all fits into your programme.

[href]www.vapourhost.com/~flyer[/href]
FakeBlood
22
Years of Service
User Offline
Joined: 18th Nov 2002
Location: Alabama, United States
Posted: 23rd Feb 2005 17:36
Nah it's not in the main loop, just a short animation in there for another object that plays through once.
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 27th Feb 2005 07:03 Edited at: 27th Feb 2005 07:04
i prefer to loop my objects manually using the start and end frames of the animation and set keyframe command, this allows for time bassed animation too eg:
frame#=frame#+timesincelastframe/100
if frame#<endframe then frame#=startframe
set object keyframe obj, int(frame#)

that should loop 10 frames per second (time since last frame is in milliseconds)

(note the command 'set object keyframe' may be worded differently that was just a guess from memory)

http://www.larinar.tk
AMD athlon 64 3000+, 512mb ddr400, abit kv8, 160gb hdd, gigabit lan, ati radeom 9800se 128mb.

Login to post a reply

Server time is: 2025-06-03 18:07:36
Your offset time is: 2025-06-03 18:07:36