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.

2D All the way! / Hidden sprites

Author
Message
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 16th Sep 2004 05:31
If I Hide a sprite when it is offscreen, does it use less memory than if I don't Hide it.

OldWrinkly
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Sep 2004 03:55
Nope. It just stops the sprite being drawn

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 17th Sep 2004 04:35
Thanks Moderator, but if it is not being drawn, does it increase the speed of those that are being redrawn in an animation.

OldWrinkly
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Sep 2004 05:29
Yes, unless it was already positioned off-screen in which case it was already not being rendered.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 17th Sep 2004 18:08
Thanks Moderator.
The reason I ask this is that I want to produce a seamless scrolling backround with a 3d effect.
To do this, I have 2 pair of 1200x480 bitmaps with black transparency.
As sprites I scroll one pair accross the screen and as one moves off screen to the left, it rejoins the other on the right and so on.
I then have the other pair do the same thing in the background, running at a different speed, which is seen through the front one.
I then have my animated sprites running at different levels.
The whole thing gives quite a good 3d effect but is obviously quite slow.
I have tried Deleting off screen and recalling them as need be.
It works OK but I am not sure if it helps. I only have the basic DB to work with. Thank You

OldWrinkly

Login to post a reply

Server time is: 2026-06-12 03:34:56
Your offset time is: 2026-06-12 03:34:56