Actors not spawning

Evening all,

I have a game on the go where I have 4 actors spawning on a screen at once. Which actor spawns where is dictated by a series of table values. E.g: at position A (spawner A) if table value is 1 actor 1 spawns, if value is 2 actor 2 spawns etc and so on for position B, C and D. These are linked to a timer so that they all can trigger at the same time (every 2s). I should be seeing 4 actors appear together on screen along with a fifth actor that just randomly changes to one of four colours. However this is not happening. I get a random number of actors up to the full amount appearing. Often none of them at all. Any ideas why this could happen? I am stumped. I've tried a lot of different ideas and nothing has worked

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    @benrogers213@yahoo.co.uk said:
    Any ideas why this could happen?

    There is very likely a mistake in your code.

  • benrogers213@yahoo.co.ukbenrogers213@yahoo.co.uk Member, PRO Posts: 14

    I did assume that at first but its pretty simple and I've looked through it all

  • benrogers213@yahoo.co.ukbenrogers213@yahoo.co.uk Member, PRO Posts: 14

    Has this kind of thing happened to anyone else?

  • SocksSocks London, UK.Member Posts: 12,822
    edited August 2015

    @benrogers213@yahoo.co.uk said:
    I did assume that at first but its pretty simple and I've looked through it all

    If you are absolutely certain there are no errors in your code then your copy of GameSalad must be corrupt or you have found a bug.

  • benrogers213@yahoo.co.ukbenrogers213@yahoo.co.uk Member, PRO Posts: 14

    @Socks I was starting to think as much. I have found no direct solution but have worked around by making the spawner the actor and changing the image on the this actor rather than spawning four different actors from it. They all have the same behaviour so indirectly the problem is solved. I am going to look into this more and put the spawn actor behaviour through some similar tests

Sign In or Register to comment.