Re: Newb Needing Help With Classes In BGT
Hi Omar,
the security check to see if an array index in deed holds a valid object and not a null pointer is definitely useful. Just to let you guys know that I've never ever needed to use it myself yet. Another useful thing about having objects in arrays is that when you want to destroy the object, you can simply call my_array.remove_at (x). Whoosh, it's gone from the array, and since I only ever keep a single reference to the objects, and that's stored in the respective array, this single line also ensures that the given object is destroyed for good. Thus, I always know that if something is in the array, it's actually alive.
This was just to hopefully explain some more stuff and possibly provide another approach, not to undermine your explanations or anything like that, Omar. :-)
Lukas
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector