Re: Random movement of some little objects?
Posted: Thu Jan 07, 2021 3:12 pm
Thanks again for your help.
I will experiment a little bit with your suggested solutions.
At the moment I try to detect in which direction the little bees move currently so that I can flip or turn them in the right direction to avoid having backwards flying bees.
I can do that when I read out the positions every x milliseconds but this seems to be a little bit of "overkill".
Especially when a lot of them are flying around.
I still wonder if the direction of the movement along a path of a handdrawn line can be turned around (move to last point vs. move to first point).
That would make a lot of things easier.
In this case I could flip the bee images everytime the path direction changes.
In the meantime I will use the path movement as you suggested.
And as you wrote possibly "nobody will notice" the difference.
I will experiment a little bit with your suggested solutions.
At the moment I try to detect in which direction the little bees move currently so that I can flip or turn them in the right direction to avoid having backwards flying bees.
I can do that when I read out the positions every x milliseconds but this seems to be a little bit of "overkill".
Especially when a lot of them are flying around.
I still wonder if the direction of the movement along a path of a handdrawn line can be turned around (move to last point vs. move to first point).
That would make a lot of things easier.
In this case I could flip the bee images everytime the path direction changes.
In the meantime I will use the path movement as you suggested.
And as you wrote possibly "nobody will notice" the difference.