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 / animation spped

Author
Message
Dark Serpent
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: U.S.A.
Posted: 11th Mar 2004 03:48
I got some x.files but when they move to shoot for example they move so slow. Does anyone know how to speed up the animation

$$$Serpant$$$
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 11th Mar 2004 15:30
If you check in the help files in DB you'll find something called SET OBJECT SPEED.

Crazy Donut Productions
Current Project: KillZone
Toby Quan
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: U S A
Posted: 12th Mar 2004 04:38 Edited at: 12th Mar 2004 04:39
You know, I had a similar situation. And yes, as Bear Crazy pointed out, there is a SET OBJECT SPEED command, but that can only go from zero to 100.

The Alien 3D model in the last competition was a great example. At the fastest speed, he still wasn't fast enough for me. I wanted him to run, not to walk. In order to do this, I couldn't use the SET OBJECT SPEED command - so I implemented my own solotion without using PLAY and SET OBJECT SPEED.

I just coded something like this in my game loop:

SET OBJECT FRAME intObject, OBJECT FRAME(intObject) + 3
IF OBJECT FRAME(intObject) >= 720 THEN SET OBJECT FRAME intObject, OBJECT FRAME(intObject) - 50


This way, I was playing the animation 3 times faster than DarkBasic would allow. It's kind of like overclocking the object!
Dark Serpent
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: U.S.A.
Posted: 13th Mar 2004 00:00
I got it to work just by seting the objects speed to 30 but thanks anyway

$$$Serpant$$$

Login to post a reply

Server time is: 2025-05-23 08:34:41
Your offset time is: 2025-05-23 08:34:41