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.

Dark GDK / [dgdk.net] Is Sprite.Exist still needed?

Author
Message
Argon Knight
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Gastonia, NC, USA
Posted: 6th Dec 2008 18:06
In dgdk.net 1.1, it seems, if we want to check to see if a sprite exists, we need to write:



Could the Exist method become a instanced method, so writing:



would simplify the need to go back and reference the sprite id number, since it is now maintained by the sprite class for us?

And, Do we even need to call Exist() now? Should we assume the sprite class will check for us until we call Sprite.Delete(), (which is a instanced method)? Could the sprite even be deleted without us calling sprite.delete? I dont see where we can delete a sprite by its id number.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 6th Dec 2008 18:08
I shall note it for next update

Paul.

kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 7th Dec 2008 05:08
Unfortunately, you or another plugin could possibly delete some sprite by its ID, as the class library is just a wrapper for the old methods, but the old methods are still there, as you can check through the "Advanced COM" documentation.

[center][center]

Login to post a reply

Server time is: 2024-09-30 11:18:21
Your offset time is: 2024-09-30 11:18:21