Retaining objects in game iphone
Posted
by Brodie4598
on Stack Overflow
See other posts from Stack Overflow
or by Brodie4598
Published on 2010-06-10T20:26:58Z
Indexed on
2010/06/10
20:33 UTC
Read the original article
Hit count: 182
Hello - I am trying to create a game and have run into what is probably a pretty easy problem to solve.
As the player goes through the game, many objects (Vehicle) will be added and removed.
The Vehicles get added to an array called currentVehiclesMutableArray.
My problem is I cant figure out how to retain a Vehicle so that it remains in the array until I am finished with it.
© Stack Overflow or respective owner