Random actor movement left, right, up, down in straight line

mojomajojomojomajojo Member Posts: 12
edited April 2012 in Working with GS (Mac)
Hello,

I'm trying for a few days already to find a solution to my problem.

I want to spawn random actors on the screen that move either from left to right or up down touching the walls.

I can spawn my actors but I can't make them move on a linear path. They either move in circle or random on the screen. I tried creating special atributes that are triggered when colliding with walls but since I have 10 actors on the screen this will change the global attributes all the time.

Please note that I only have one actor that I want it to spam in more instances.

I could create four actors that move up, down, left, right and spawn them on a timer but I want this to look more clean since in future levels I want to spawn many more instances and to have some control over them.

Can anyone help me ?

Best Answer

Answers

  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Please watch out when you're posting, I've just had to delete 3 duplicate threads all made at the same time.

  • mojomajojomojomajojo Member Posts: 12
    Sorry for that I just noticed that myself. Thanks for the cleaning.
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    No problem.

    I just read your question and I can't visualise what you mean. Do you have a screen recording so I can see?

    Forgive me, as it could very well be my slow brain... I'm tired lol
  • mojomajojomojomajojo Member Posts: 12
    I'm sorry but I don't have one :(. If you want I can screen share my screen on Skype ? If you have the time and you are in the mood :)
Sign In or Register to comment.