Random actor movement left, right, up, down in straight line
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 ?
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 ?
Answers
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