Spawn Actor Problem

ColorplayGamesColorplayGames PRO Posts: 69
edited November -1 in Working with GS (Mac)
Hi all,
I am either doing something wrong or have discovered a bug. Either way I would like some help please :)

I have a game where actors are randomly spawned. Each actor has a "score" attribute (which starts at 0), and the longer the actor stays on the screen the larger the score attribute becomes. These actors can be destroyed by clicking on them. However, once you start destroying them some strange behavior shows up. While a normal actor should start with a score of 0 that steadily increases, actors start spawning with higher score values that do not increase.

I've made a simple (downloadable) project here that shows what I'm doing to generate this problem:
http://gamesalad.com/game/play/59237

Is there a way I can get around this problem? Has anyone seen this before?

Thanks for the help,
Jenna

Comments

  • ColorplayGamesColorplayGames PRO Posts: 69
    bumping this since it didn't get any responses yesterday
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    Looks like they are recycling the memory associated with destroyed actor as the next actor to get spawned starts at the value of the previously destroyed actor...
Sign In or Register to comment.