spawning

one of my actors is ment to spawn at a random position and everytime it spawns, it doubles

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2014

    If you need some help sorting out the issue you'll probably need to give a little more detail, ideally a screenshot of the offending actor's rule* would be good.

    (*the rule that spawns the actor).

  • tony04tony04 Member Posts: 4
    edited May 2014

    how do i add a screenshot.

  • colandercolander Member Posts: 1,610

    You have to zip any file you upload or it won't let you upload it then use the last choice above the comment box

  • tony04tony04 Member Posts: 4
    edited May 2014


    here it is

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

    @tony04 said:

    The issue is that you are spawing the spawner !

    Normally you get actor A to spawn actor B, let's say you get a gun to spawn some bullets.

    But how you have it set up our hypothetical gun is spawning more guns . . . and these newly formed guns are spawning more guns themselves . . . and these newly formed guns are spawning more guns themselves . . . and these newly formed guns are spawning more guns themselves . . . . and so on

    . . . . and so on.

  • tony04tony04 Member Posts: 4

    thank you i really appreciate but can you make the scene spawn the actor

  • hesdeadjimhesdeadjim Member, PRO Posts: 38

    You might want to add a hidden object that just spawns other actors. It can be off screen, or you can set its self.color.alpha to 0 and make it invisible.

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

    @tony04 said:
    thank you i really appreciate but can you make the scene spawn the actor

    No the scene can't spawn an actor, just make up a new actor (let's call it 'spawner') - then place this actor in the scene and use it spawn the actor or actors you need spawning.

    Like hesdeadjim said, you don't have to see this actor if you don't want, you can turn it's visibility off (in its Graphics attributes - uncheck the 'Visible' attribute).

Sign In or Register to comment.