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 / aniamation help request

Author
Message
koolaid 2764
21
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Atlanta, Georgia
Posted: 17th Dec 2004 06:38
im having some trouble with moving my character and playing tha animations smoothly.when im not moving(move#=0)and the idle animation loops when upkey()=1,move#=1 and i want to move the player and loop the walk animation.theres like a pause when i press the upkey and move the walk ani doesnt start till a couple of seconds and also when im walking the ani is looping but its jumpy from when it reaches the end and starts over the charcter jumps how can i smooth this out here my code.before the main loop i set the speed and interpolation.



KOOLAID
Jake Blues
20
Years of Service
User Offline
Joined: 19th Jun 2004
Location: United States
Posted: 17th Dec 2004 06:52
Why don't you do something like this.



Then you would limit the Frame variable to a certian value, the object's last animation frame. Then if it goes over that value, it will go back to zero.



Don't let life get you down, it will only get better.
koolaid 2764
21
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Atlanta, Georgia
Posted: 17th Dec 2004 07:30
it didnt work still the same affect

KOOLAID
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 17th Dec 2004 07:57
After MSN seding failed, try this one



In the "On Down", that's where you set the "Walk" animation to loop.
In the "While Held" that's where you move the player.
In the "On Up" that's where you set the "Idle" animation loop

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!

Login to post a reply

Server time is: 2025-05-24 07:38:48
Your offset time is: 2025-05-24 07:38:48