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 / Problem with skateboardgame

Author
Message
doffer
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location:
Posted: 28th Dec 2003 11:08
Hi, I'm making a skateboardgame but i got a problem.

How do I have different animations with the same model.

I have imported a charecter who's standing still, and when I press spacebar, he shold ollie. Then i import a new cahrecter how's making olle, nut when he does that, the old charecter who's standing still, is still on the screen.

I hope the solution is out there somew here

Denmark Denmark Denmark.
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 28th Dec 2003 12:47 Edited at: 28th Dec 2003 12:48
you want the append object command...syntax

append object "ollie.x",current_object_number,last_frame_plus_1_of_his_anim

that adds the animation "ollie.x" to the end of the animation for the object with the number current_object_number, than you use the play object command with the correct values for start frame and end frame, you then have just the one object with two animations you can play the whole thing with just play object, or sections of either animation as you want, cheers.

Mentor.

System spec : Pentium 3.0Ghz, 512MB DDR, 2x160Gb HD (using icewave hd coolers ), DVD RW/CD RW (all modes), multimedia front panel, 6 way surround sound, ATI radeon 9800Pro 128mb.
doffer
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location:
Posted: 28th Dec 2003 13:39
@Mentor: Thanx a lot. I will try that.

Denmark Denmark Denmark.

Login to post a reply

Server time is: 2025-05-22 09:00:03
Your offset time is: 2025-05-22 09:00:03