Disappearing actors?!

eden4eden4 Member Posts: 3
edited November -1 in Working with GS (Mac)
Hi all,

I've successfully created an iPhone app which, to all intense and purposes, is ready to go. However, I have a minor bug in it?! I needed actors to appear in random positions. I followed the tutorial by tshirt booth called 'How to display random images without repeats' as it best suited my needs. Using this tutorial I created 7 actors that randomly display 5 images each (I have a total of 35 separate images). I placed 5 of each of the 7 actors randomly in my scene (to really mix it up). Everything works well to the extent that the actors are being displayed randomly and the code seems to be working, however, sometimes actors do not appear? For example, I start the app and I have all 35 images randomly displayed, then I hit my 'Next' button and all 35 images are randomly displayed, then I hit 'Next' and the actors are randomly displayed, but 2 are missing, do it again and 3 maybe missing, do it again and maybe all appear and so on and so on? Basically, I'm occasionally missing the odd one or two actors every now and then after hitting the 'Next' button to randomly display them.

Any ideas anyone? This is really annoying as, apart from this, I'm ready to upload!!

Thanks!

Comments

  • wormilwormil Member Posts: 127
    Without seeing the code, no idea. But I had a similar problem where global game variables were not being reset, and stuff started to act funny. Debug is your friend :)
  • eden4eden4 Member Posts: 3
    I've opened the Debugger window, but it's showing nothing?! I'm pretty new to this, how do I debug?

    Thanks!
  • wormilwormil Member Posts: 127
    You need to put in the Log Debugging Statement behavior into your code where you want a message to show up. Then put a message in there. Either "HELLO WORLD" or what not. Whatever you want to see. It will then get sent to the debug window.
Sign In or Register to comment.