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

Author
Message
Bloder
17
Years of Service
User Offline
Joined: 24th Feb 2007
Location: Cyberspace
Posted: 16th Oct 2009 20:04
How do I change an object into another but it has the same properties but a different number?

If I were you, I'd make a game...
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 16th Oct 2009 21:34
Off the top of my head i would say make a memblock from the object then make the object(with a new object number) from the memblock. it would essentially copy the object.

New Site! Check it out \/
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 16th Oct 2009 21:48
if you loaded it, simply load it into another number :

load object *bla.x*,1
load object "bla.x",2

if you made it with a DBC command, make it again but with another number

make object cube 1,10
make object cube 2,10

TheComet


Make the paths of your enemies easier with WaypointPro!
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 17th Oct 2009 03:59 Edited at: 17th Oct 2009 04:00
He is talking about copy rotations and positions and everything. although thinking about it, I don't think my idea would even copy the position since the vertex positions are offset from the object position not from the world zero.

New Site! Check it out \/

Login to post a reply

Server time is: 2024-05-09 13:15:20
Your offset time is: 2024-05-09 13:15:20