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 / Need help with my code

Author
Message
white boy kyle
18
Years of Service
User Offline
Joined: 5th Feb 2007
Location:
Posted: 6th Feb 2007 01:00




Alright what i am trying to do is make a mouseclick on a 3d object.. how would i do that?
Also i am trying to make a popup screen when you click on that object..
Also how would i make questions? so when you answer them right they calculate your score and go to next question (5 questions).

If you could help let me know.. Thanks
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Feb 2007 02:17
Clicking on a 3D object would be easy Pro, but alas, there's no pick object in DBC. You'd have to use some fancy math to get a precise function for that.

LowerLogic posted a code snippet recently that might hold the key to what you need. It draws 3D object using 2D commands. You could probably reverse the code to do the opposite.

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Feb 2007 02:46
For clicking on 3D objects with the mouse in DBC the way you do in DBP, Phaelax is correct - it's hairy maths.

But I designed a 'cheating' way some time ago. It might be of use to you, but depends on what you are trying to do.



TDK_Man

white boy kyle
18
Years of Service
User Offline
Joined: 5th Feb 2007
Location:
Posted: 6th Feb 2007 02:57
Thanks for the reply but i have to do it in DBC becuase i am going to a compitiion.. =( gay rules..
white boy kyle
18
Years of Service
User Offline
Joined: 5th Feb 2007
Location:
Posted: 6th Feb 2007 17:16
Yea i guess i will just do the 1 view..
white boy kyle
18
Years of Service
User Offline
Joined: 5th Feb 2007
Location:
Posted: 7th Feb 2007 18:26
How would i make when i click on the object questions come up and you have to answer them? I either want them to go to a new screen with a Sprite Hud or Just pop up where i am at and ask them..

Is there a way to make rnd questions.. like i have 15 different questions and answers but could they be asked different orders each time.

Thanks
Please answer back.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Feb 2007 00:55
Quote: "Please answer back."


Why should we bother when you just ignore our posts?

TDK_Man

Login to post a reply

Server time is: 2025-05-26 05:02:43
Your offset time is: 2025-05-26 05:02:43