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.

AppGameKit Classic Chat / How to "Pick Objects"?

Author
Message
Yodaman Jer
User Banned
Posted: 16th Dec 2015 19:07
Back in DarBasic Pro, we had the awesome command of "Pick Object", allowing users to be able to make easy level editors.

I don't see a command like this in AGK. Is there an equivalent, or do I have to do something with raycasting from the mouse? In which case, an example would be just dandy, but not necessary so long as you give me an idea to start with!

Thanks you lovely AppGameKit people!



Forum President until June 20th, 2016.

Sign up for NaGaCreMo!
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 16th Dec 2015 21:07 Edited at: 16th Dec 2015 21:08
Here is an example
The coffee is lovely dark and deep,and I have code to write before I sleep.
29 games
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 16th Dec 2015 21:39
There's also these examples, both of them pretty similar to Stab in the Dark's example:

https://forum.thegamecreators.com/thread/202106
http://www.appgamekit.com/documentation/Reference/3D/Get3DVectorXFromScreen.htm

If you're on 2.15 or above then the directional light command will need to be changed.
Invaders of the 29th Dimension - available now on Google Play
Find me on indieDB
Yodaman Jer
User Banned
Posted: 17th Dec 2015 03:57 Edited at: 17th Dec 2015 03:58
Wow you guys are AWESOME! Thanks so much!

@Stab in the Dark, that is an awesome example! It's so much easier than I would have thought!

Sign up for NaGaCreMo!

Login to post a reply

Server time is: 2024-11-17 01:03:01
Your offset time is: 2024-11-17 01:03:01