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 Professional Discussion / Selecting objects

Author
Message
Dark Esch
22
Years of Service
User Offline
Joined: 4th Sep 2003
Location:
Posted: 6th Sep 2003 17:36
i am doing a level editor, but i dont know how to select objects with mouse cursor in a 3d screen.

anyone can help me?
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 6th Sep 2003 17:41
Pick object() should be the command you're looking for.

Theres no place like 127.0.0.1
There are 10 people in this world, those who understand binary and those who don't
Bus station = where bus stops. Train station = where train stops. Workstation = ?
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 6th Sep 2003 17:51
intmouse as integer
intpickobject as integer

`\\ check for mouse value
intMouse=mouseclick()
`\\ left click Get PICK OBJECT value
if intmouse=1
intpickobject=pick object(mousex(),mousey(),objstart,objend)
endif

objstart and objend are the object number range to check

-RUST-
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 6th Sep 2003 19:00
See my snippets here on how to use pick object / pick screen

http://www.thegamecreators.com/?m=forum_view&t=15701&b=7

The programmer formerly known as sonic
Dark Esch
22
Years of Service
User Offline
Joined: 4th Sep 2003
Location:
Posted: 6th Sep 2003 21:52
thanks. ))))0000

Login to post a reply

Server time is: 2026-07-23 10:48:30
Your offset time is: 2026-07-23 10:48:30