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 / slow for next loop

Author
Message
ClearCoder
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 28th May 2003 12:18
the porblem is that i have all my things like jumping climbing and fall in for next loop but they are too fast so the player can't see what happens is then a way i can slow them down
Newbie Now; Expert Later
Current project:The Sorus
http://us.f1.yahoofs.com/users/8e2ce249/bc/logo.jpg?bc6XVw.ALSzFxXyM[/img]
freak
22
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 28th May 2003 15:38
do you use manual syncing?

[href]www.bernardfrancois.com[/href]
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 28th May 2003 17:32
try putting a [sleep 1] or [sleep 0.3] at the end of your loop...
this will get it to wait for a fraction of a second before it loops again also use the sync command sets like [sync on] and [sync]...example...

...code...
[sync on]
...more code...
Do
...code
Sleep 0.3 (optional)
Sync
Loop

i hope this helps...

Anyone Can Destroy...But Few Can Create...
Darksoft
22
Years of Service
User Offline
Joined: 17th Sep 2002
Location: United States
Posted: 28th May 2003 19:04
Use interpolated speeds based on time:



TH -Darksoft.net
freak
22
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 28th May 2003 20:19
if its a game with a player, there better should be a set sync rate...
using sleep, wait or timer commands might do the same thing but that seems more complicated for me (and I don't think it has any advantages)

[href]www.bernardfrancois.com[/href]

Login to post a reply

Server time is: 2025-05-19 13:48:10
Your offset time is: 2025-05-19 13:48:10