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.

Author
Message
Mugen Wizardry
User Banned
Posted: 28th Aug 2010 21:58
Hi all. Does someone have an example using a cube, sphere, and cylinder of being able to switch objects when a key is pressed?

like i wanna press a key, and the cube would hide and the sphere would show

thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 28th Aug 2010 23:10
Have you tried it yourself? It's a simple matter of taking keyboard input, increasing a counter, and hiding/showing a few objects. Probably less than 10 lines of code.


Latest progress: Fog of War implemented
Mugen Wizardry
User Banned
Posted: 28th Aug 2010 23:15
yes. i know how to set it to increase the counter. but i don't know how to make it switch objects.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 28th Aug 2010 23:20
Let's see what you've got and I'll help you get it the rest of the way there.


Latest progress: Fog of War implemented
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 30th Aug 2010 21:24
Look up hide object and show object in the help.

Then just show the object that you want to be seen, and hide the rest

Login to post a reply

Server time is: 2026-07-23 12:10:45
Your offset time is: 2026-07-23 12:10:45