Can a large single actor spawn small "collectables" in different positions?

SaveDaveSaveDave Member Posts: 140
edited November -1 in Working with GS (Mac)
Let me try to explain...

If I have a non moveable wall that is 480 px wide and 20 px high, can I have this spawn 20px x 20x collectables at a random point along that wall?

Preferable able to make it move them vertically and many of them... I.e, every 0.5 sec?

How do I go about this?

If it's possible!

Comments

  • butterbeanbutterbean Member Posts: 4,315
    You should be able to do that by putting a rule in the wall that spawns those actors at random points

    So just put something like:

    Spawn actor: collectables
    random position ---> (X) (10,480)
    random position ----> (Y) (0,20)

    and relative to "actor" not scene

    Then in your "Collectables" actor, you can make them move up or if you wanted to move them, you put the rules within that actor to make them move

    See if that works or helps!
  • ChaserChaser Member Posts: 1,453
    I think you need to set up an actor that changes to arandom number every .003 seconds or something like that and on the wall when touch is pressed and random number is let's say 2 then spawn actor 2 at certain position x then new rule when touch is pressed and random number is let's say 6 then spawn actor 6 at a different position x
  • SaveDaveSaveDave Member Posts: 140
    Sounds good butter bean, I will try that in a bit and hopefully it will be just what I need.

    Thanks
Sign In or Register to comment.