Spawned Actor!!!

dade6dade6 Member Posts: 13
edited November -1 in Working with GS (Mac)
Hi everybody!!!!
I'm trying to make an action game, where the monsters that the player have to fight are spawned randomly.
For better collision and fighting system i need to create an actor called weapon wich have the position constrained to the spawned monster.
In other words, if the spawns ten monster i need to know the of all ten monsters
So the question is: how do i read data from a spawned?

thank you

Comments

  • dade6dade6 Member Posts: 13
    is there anybody?
  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    U need game attributes, 10 diferent attributes and actors.
  • dade6dade6 Member Posts: 13
    But what if have an indeterminate number of monster?
    thank you anyway
  • dade6dade6 Member Posts: 13
    i need to create an array or something like that, but, how?!
  • dade6dade6 Member Posts: 13
    anybody have any ideas?
    please help me
  • magic101himagic101hi Member Posts: 713
    dade6 said:
    i need to create an array or something like that, but, how?!

    Arrays are not supported in GameSalad 0.9.0.

    -Josh
  • dade6dade6 Member Posts: 13
    So the conclusion is that it's not possible to do what i've asked before?
  • SlowboySlowboy Member, PRO Posts: 329
    Hi Dade, it's not impossible, but as Nicolas said, you'll need to track each monster invidually with it's own set of rules and attributes. If you really want an indeterminate number of monsters then you should probably look at limiting it somehow, so that you know what you're getting, and this would also allow you to keep a grip on the performance.
    Start solving your problems with only 3 monsters - pretend your game will only EVER have 3 monsters!
    Once that's working nicely, go to 10!
    You may be able to sort out a system where you have 'max monsters on screen = 10, 20, 30 or whatever' then another live monster will only get spawned once another monster has died - one out, one in.
    Hope there's some food for thought there?
    Cheers
    Wayne
  • dade6dade6 Member Posts: 13
    Hi slowboy thank you for your explanations and advices. I've already managed to do with limited number of monster... But that's not the experience of game i've wanted to create.
    I'll wait 'till it will be possible to use arrays, in the meantime i'll try another way for programming my game
    see ya.
Sign In or Register to comment.