How do I use pin

Get help using Construct 2

Post » Mon Dec 07, 2015 6:48 am

what i have is a moving object that is not actually moving but is just changing its origin in order to look like its moving( this is the animation). I want object 2 to stick on object 1 but because the object is not really moving and just precieved to be moving o2 does not follow o1.
B
8
S
3
G
2
Posts: 52
Reputation: 1,762

Post » Mon Dec 07, 2015 7:35 am

You could add an image point on the animated object and just set the other object's position to the imagepoint every tick. You could also change it so the animated sprite actually is moving so you could use the pin behavior.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Mon Dec 07, 2015 7:37 am

A couple of untested ideas which might work depending on your particular setup.
Change the animation of object 1 so the origin stays in the same place but the actual sprite does move.
Depending on the type of movement (e.g. just left to right?) Replace this with actual movements (e.g. sine)
give object to a similar animation to object 1 e.g. changing of its origin point

(if these turn out to be ridiculous ideas I would like to point out that I've not had a cup of coffee yet :-))
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812


Return to How do I....?

Who is online

Users browsing this forum: Cha0tiXGamer, MaujDeveloper and 9 guests