How do I move a pinned object

Get help using Construct 2

Post » Tue Sep 22, 2015 12:05 pm

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?
Posts: 2
Reputation: 179

Post » Tue Sep 22, 2015 12:10 pm

More than one way to do this, depending on how you move the bucket..

One way would be something like i did in this example of a player moving on top of a moving train: ... oved2.capx
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Post » Tue Sep 22, 2015 12:41 pm

Thank you,
ill try that
Posts: 2
Reputation: 179

Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], brunopalermo, Gumbo and 42 guests