Hi,
ich cant solve this problem.
I create a big object and this object should contain smaller objects, which i want to move inside of the lager object to a random location.
for example: a fish in a bucked
i tried;
if the fish is overlapping the bucked -> random(bucked.X-bucked.Width,bucked.X+bucked.Width) and the same for Y
find path and move
Its working well for me, but i wat to move the bucked an the fish should also move inside.
If i move the bucked, the fish gets out of the bucked. If i pin the fish, it cant move.
What can i do?