do something for 10 seconds

Blitz3D Forums/Blitz3D Programming/do something for 10 seconds

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can never = Millisecs()+1000

because Millisecs is always the current counter.

Have a quick look at this code:

http://www.blitzbasic.com/logs/userlog.php?user=2370&log=435

For the movement, I wanted to do step-by-step walking and turning, but not "jump", but show the turning etc gradually (I did this on the poo pc at work, so might be very quick on most newish PCs.)

Although I haven't specifically linked it to time, it could be simply modified to be time-based instead.

(replacing the ForNext loops with incrementing Timers and checks against Millisecs()

The important note is the calls to the rendering function DURING the movement.