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.

Newcomers DBPro Corner / Hiding multiple sprites

Author
Message
Magnolia
15
Years of Service
User Offline
Joined: 19th Jan 2009
Location: New Jersey
Posted: 4th Apr 2009 13:54
Does anyone know a way to hide more than one sprite quickly?

Currently I'm writing

hide sprite 1
hide sprite 2
hide sprite 3
etc etc etc.

Hide sprite 1, 2, 3 etc doesn't work either!

Thanks!
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 4th Apr 2009 15:38
Use an for-loop.
(Of course that only speeds up the writing of the code, not the execution time).



Xeridox
21
Years of Service
User Offline
Joined: 19th May 2003
Playing: Scrap Mechanic
Posted: 12th Apr 2009 07:37
If you're hiding all but one or two sprites, you could use HIDE ALL SPRITES then show the ones you want...just an alternative, you choose the best method

Phenom - FPS WIP - Demo 1.0 released - http://xeridox.com
Intel Core 2 Duo Conroe / 2GB DDR2 system RAM / nVidia 9800 GX2

Login to post a reply

Server time is: 2024-11-24 08:55:48
Your offset time is: 2024-11-24 08:55:48