Is there a way to spawn random actors in random locations without overlapping without using tables?

CabacoEntertainmentCabacoEntertainment Member Posts: 13
edited July 2012 in Working with GS (Mac)
Hello,

I have seen TshirtBooth's video and it turns out I find it very complicated and I don't like to use tables, so I was wondering if it is possible to spawn random actors in random locations without overlapping without using tables.

My game has two different actors that spawn at the same X coordinates but different Y coordinates, they spawn every 0.7 seconds and I want them not to overlap. When clicked, the actors are destroyed.

Any help?

Thanks,

Cabaco

Comments

  • CabacoEntertainmentCabacoEntertainment Member Posts: 13
    please please help out!
  • KodeRiter722KodeRiter722 Member Posts: 42
    there is no easier way than using a table to store the positions. you would be better off spending the time learning to use tables than to continue to find difficult workarounds to avoid them. they are a powerful tool, and the sooner you learn how to use them, the better your games will be.
  • CabacoEntertainmentCabacoEntertainment Member Posts: 13
    @koderiter722 ok so I tried using them, turns out the amount of actors spawned end at the same number of rows in the table I put. I want the actors to be spawned infinitely. Can anyone help me out?
  • CabacoEntertainmentCabacoEntertainment Member Posts: 13
    Can anyone help me here in my last question?
  • CabacoCabaco Member Posts: 414
    Bump, please help guys. Without the solution I can't progress the development of my app
  • insideappsinsideapps Member Posts: 6
    Just copy the rows down and make the table long enough to create the enemies you need?
  • thelogobarthelogobar Member Posts: 93
    You can't have them infinite AND not overlap can you?
  • thelogobarthelogobar Member Posts: 93
    And tables are awesome.
Sign In or Register to comment.