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 / hide object as the next object, help

Author
Message
Daniel wright 2311
User Banned
Posted: 16th Aug 2010 22:44
Ok, so I have most of my code working, I am making mini games for inside the game, and I need one object to hide not all for some reason I can not seem to wrap my mind around it, I think im tired but any help would be nice.

for game1objects=4 to 20
hide object game1objects
next game1objects

this hides all the objects, I need only the clicked object to be hidden at each time.

thanks for any help.

Logo by The Next
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 16th Aug 2010 22:58
Use pick object together with an "if" test?
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 16th Aug 2010 22:58
Use the pick object command to find the object number then hide that object.

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 16th Aug 2010 22:59
Snap!
Daniel wright 2311
User Banned
Posted: 16th Aug 2010 23:02 Edited at: 16th Aug 2010 23:05
I am using pick object, but its checking 16 diffrent objects, and then when I click on one they all hide, I need the one object i click on to hide as i click it, not all of the objects.here is the full code



Logo by The Next
Daniel wright 2311
User Banned
Posted: 16th Aug 2010 23:41
nevermind, I figured it out thanks

Logo by The Next
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 16th Aug 2010 23:53
Missed it by that much.

Login to post a reply

Server time is: 2026-07-25 17:49:24
Your offset time is: 2026-07-25 17:49:24