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 / how do i insert a walking character into this code?

Author
Message
blessmerized games
16
Years of Service
User Offline
Joined: 30th Dec 2008
Location:
Posted: 14th Jan 2009 06:41
how do i insert a walking character into this code, and delete the sphere?
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 14th Jan 2009 13:23 Edited at: 14th Jan 2009 13:24
Erm... What code? (Maybe you didn't attach a file properly when you posted?)

Anyway, to simply delete the sphere you can just call "Delete Object ObjNum", where ObjNum is the sphere's object number.

To insert a walking character so it will appear instead of the sphere, replace the line of code "Make Object Sphere ObjNum, Size" with "Load Object "Media/MyModel.x", ObjNum". Specify your own file path (doesn't have to be a .x model, it can be a .3ds instead), and use the same object number as the sphere used (e.g. you had the sphere as object 10, so load the 3d objects into slot 10).

In a nutshell:

Obviously you'll need to change this a little to make it fit properly into your own code - would have tried to adjust your own source, but I'm not much of a mind reader! Hope this helps!

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 14th Jan 2009 16:38
Do you have a model?

Peachy, and the Chaos of the Gems

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 15th Jan 2009 04:56
he should atleast have the ones that come with darkbasic haha
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 18th Feb 2009 20:43
We dont know how to help if we dont know what the code is

Login to post a reply

Server time is: 2025-05-18 18:42:26
Your offset time is: 2025-05-18 18:42:26