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.

Newcomers DBPro Corner / IM A NEWBIE...HELP WITH OBJECTS.....ANYBODY DECENT??PLEASE HELP ME THEN!

Author
Message
wanderer
20
Years of Service
User Offline
Joined: 17th Feb 2004
Location: vampire temple
Posted: 21st Mar 2004 21:37
Im new as you might have noticed. ive got DarkBASIC CLASSIC and DARKMATTER and need help. please help me with loading and using objects.
i can create spheres and cubes and texture them, but what about .x and.3ds models?
how can i:
load an object called 1.3ds
load the objects 2.eds and 3.3ds
make it so that when nothing is pressed it becomes object 1
when forwards is pressed it moves forwards and becomes object 2
when space is pressed it becomes object 3

and how do i find out the total object frames for an object???

THANX SO MUCh

the dark wanderer

666
Shadow
21
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 21st Mar 2004 21:47 Edited at: 21st Mar 2004 21:49
You can't change an object's number like that.

To load an object, use the load object command.

It works like this:
load object FILENAME,OBJECT NUMBER

e.g.
load object "1.3ds",1

A list of commands with description can be found in DarkBasic's help file. You should look there for this kind of help.
wanderer
20
Years of Service
User Offline
Joined: 17th Feb 2004
Location: vampire temple
Posted: 21st Mar 2004 22:55
i mean so the object on the screen becomes whatever is stored in 1,2,or 3

666
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 22nd Mar 2004 19:09
The numbers are reference IDs. In this 1 is the object "1.3ds", but Shadow could have easily chosen 10, 450, or any other valid number for that object. The number you chose is determined by the programmer. A lot times objects are grouped by function, for example low might be used for static objects and high numbers for moving or player objects. Use whatever works for you. Many times you will have to update multiple objects (say invaders in your Space Invasders 3D game), by using sequential numbers, you can set up a loop and process all the units in a similar manner.
--
TAZ

John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 22nd Mar 2004 23:05


Worth a try...not tested but should work.


We need help! Email us! join@eternaldestinyonline.com

Login to post a reply

Server time is: 2024-09-22 02:40:26
Your offset time is: 2024-09-22 02:40:26