Re: [Audyssey] looking for some programming help

2013-08-23 Thread Thomas Ward
Hi John, Yes. As Philip has answered the game will destroy objects and variables when they go out of scope. In addition BGT has a built-in garbage collector which cleans up after itself so you don't have to worry about cleaning up after yourself. BGT will automatically handle all that for you. Ch

Re: [Audyssey] looking for some programming help

2013-08-23 Thread Thomas Ward
Hi John, You can simply use a boolean variable to test if the enemy or item is in play or not like this. if (enemy1.is_killed == false) { UpdateEnemy1(); } if (item1.is_found == false) { UpdateItem1(); } Do you see h

Re: [Audyssey] looking for some programming help

2013-08-23 Thread Philip Bennefall
ay, August 23, 2013 11:18 PM Subject: Re: [Audyssey] looking for some programming help I'm wondering if it's safe to remove an object from an array, if the command to do so comes from within the object itself. I.e: if(health<=0)//if this ship dies { ships.remove_at(number);//

Re: [Audyssey] looking for some programming help

2013-08-23 Thread john
ent number of elements in the array. So you never need to worry about explicitly calling object destructors. Kind regards, Philip Bennefall - Original Message - From: "john" To: ; "Gamers Discussion list" Sent: Friday, August 23, 2013 11:09 PM Subject: Re: [Audyssey]

Re: [Audyssey] looking for some programming help

2013-08-23 Thread Philip Bennefall
current number of elements in the array. So you never need to worry about explicitly calling object destructors. Kind regards, Philip Bennefall - Original Message - From: "john" To: ; "Gamers Discussion list" Sent: Friday, August 23, 2013 11:09 PM Subject: Re: [Audyss

Re: [Audyssey] looking for some programming help

2013-08-23 Thread john
from any arbitrary position in the case of remove_at. Kind regards, Philip Bennefall - Original Message - From: "john" To: ; "Gamers Discussion list" Sent: Friday, August 23, 2013 10:32 PM Subject: Re: [Audyssey] looking for some programming help I'm u

Re: [Audyssey] looking for some programming help

2013-08-23 Thread Philip Bennefall
destroyed even before the function returns, specifically when the execution leaves that scope. Kind regards, Philip Bennefall - Original Message - From: "john" To: ; "Gamers Discussion list" Sent: Friday, August 23, 2013 10:41 PM Subject: Re: [Audyssey] looking

Re: [Audyssey] looking for some programming help

2013-08-23 Thread john
Awesome. While I'm looking for info, does the engine automatically clean up variables that are no longer in use? I have a commonly-called method, which creates a variable. Will that variable be destroyed when the method is finished? Thanks, John. - Original Message - From: Philip Benn

Re: [Audyssey] looking for some programming help

2013-08-23 Thread Philip Bennefall
;john" To: ; "Gamers Discussion list" Sent: Friday, August 23, 2013 10:32 PM Subject: Re: [Audyssey] looking for some programming help I'm using bgt. - Original Message - From: Philip Bennefall http://www.onemodelplace.com/CaraQuinn Follow me on Twitter! https://

Re: [Audyssey] looking for some programming help

2013-08-23 Thread john
I'm using bgt. - Original Message - From: Philip Bennefall What language are you using? If it is BGT, the array class has methods such as remove_last, remove_at etc which will do what you want. Other programming languages have equivalent containers, such as C++ vector or list. Kind re

Re: [Audyssey] looking for some programming help

2013-08-23 Thread Philip Bennefall
;john" To: "Gamers Discussion list" Sent: Friday, August 23, 2013 10:22 PM Subject: Re: [Audyssey] looking for some programming help Basically, I've written a class ship, and declared an array of them; one for friendly and one for enemy. I'd like to know how I can mak

Re: [Audyssey] looking for some programming help

2013-08-23 Thread john
Basically, I've written a class ship, and declared an array of them; one for friendly and one for enemy. I'd like to know how I can make the ship disappear when it's destroyed. - Original Message - From: Cara Quinn How are you adding your entities into the game? Do that in reverse. :)

Re: [Audyssey] looking for some programming help

2013-08-23 Thread Cara Quinn
HI Again John, did also want to congratulate you on getting your basic game working! Woohoo! Congratulations to you! Smiles, Cara :) --- View my Online Portfolio at: http://www.onemodelplace.com/CaraQuinn Follow me on Twitter! https://twitter.com/ModelCara On Aug 23, 2013, at 12:33 PM, john

Re: [Audyssey] looking for some programming help

2013-08-23 Thread Cara Quinn
Hi John, How are you adding your entities into the game? Do that in reverse. :) I'm actually not trying to be snarky here, :) I just can't give you a better answer until I know both the language you're using and your method for creating your entities in the first place. Know what I mean? If yo

[Audyssey] looking for some programming help

2013-08-23 Thread john
Hi all, I've finally gotten the general infrastructure of a game started, but I've run into an issue with my enemy class. Namely, once the enemy is defeated, I have no idea how to remove it from the game. Could anybody give me some examples of how you handle removing ememies and items from pl