spawning issue: spawns 2 actors instead of one

I'm having an annoying problem with my game: there's an actor with a rule that says:"every 3 secs, spawn enemy". But, every 3 secs, there are spawning 2 of the same enemies next to each other. I checked all the code and nothing seems to declare why this is happening... Does anyone know what to do with this?

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    There is an error in the way you have your code set up.
  • vincentWvincentW Member Posts: 47
    An error... how can I possibly solve this?
  • SocksSocks London, UK.Member Posts: 12,822
    An error... how can I possibly solve this?
    By looking through your code, locating the error and then correcting it.
  • -Timo--Timo- Member Posts: 2,313
    if you post an image or your rules then we can have a look at it.
  • vincentWvincentW Member Posts: 47
    edited October 2013
    How can I add screenshots on this forum?
  • -Timo--Timo- Member Posts: 2,313
    go to tinypic.com or imagehack.us and upload your images there. copy the DIRECT LINK from the images and post it like this <@img src="image direct link"> without the @ and "image direct link" is the direct link of the image.
  • GM_PandagamesGM_Pandagames Member Posts: 228
    i like tinypic
  • vincentWvincentW Member Posts: 47
    edited October 2013
    image
  • vincentWvincentW Member Posts: 47
    image
  • vincentWvincentW Member Posts: 47
    edited October 2013
    image
  • vincentWvincentW Member Posts: 47
    edited October 2013
    There you go
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    are all of those separate rules?
  • vincentWvincentW Member Posts: 47
    Th first one is a rule of the background actor who spawns the spawner.
    The second rule changes the spawning attribute every 5 secs to either 1 or 2.
    When this attribute is 2 for example, it will spawn enemy number 2 every 3 secs, this is the third rule.
  • vincentWvincentW Member Posts: 47
    So the first one is a seperate rule of the background actor. The others are both sperate rules of the spawner.
Sign In or Register to comment.