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 / Animated objects

Author
Message
Plugged
21
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 14th Dec 2002 11:18
i have animated and object so when forward is pressed
the walking animation start but once started i can not stop
it. Also the walking animation is to slow is there any way i can speed it up

thx
Element
21
Years of Service
User Offline
Joined: 14th Dec 2002
Location: United States
Posted: 14th Dec 2002 12:31
Well in your coding you should have stated a certain speed for your character(model) or you wouldnt have gotten it to move in the first place, so just change that to -# or +# or whatever you made it.

Read the DB Manual: Tutorial Ten(10), that explains about a 3d character that moves from idle.x to walk.x and creates the walking product.

Sorry I couldnt help much, but you didnt give too much info

Blazer
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 14th Dec 2002 22:16
You could set it so

if upkey()=1 then play animation 1
if upkey()=0 then stop animation 1

that easy =]
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 15th Dec 2002 00:08
To speed up the animation, use the

set object speed x,y

command, where x is the object number and y is a speed from 1 to 100. I think the speed defaults to about 25.

Login to post a reply

Server time is: 2024-04-25 15:12:50
Your offset time is: 2024-04-25 15:12:50