How do I make an object stick to another at collision?

Just started using Construct 2? Post your questions here

Post » Thu Aug 28, 2014 7:49 pm

So, I am trying to get an object to stick to another when they collide and make object 1 "stick" to object 2 and remain stuck to object 2, while following it's movement and rotation, until the end of the layout. Example: bugs come flying at the player character from left and right sides of the screen and "stick" to the player character at the point where they collide.
Is this actually possible to do? I guess Katamari would be a great example of items sticking together and I searched far and wide for something like this in the forums, but all I found was a Katamari reference for Construct Classic with a dead link to the original example file. Would I need to setup numerous image points and have the incoming objects "stick" to the individual image point that they come into contact with, or is there an easier way?
Thanks in advance for any help that is provided! :D
B
7
S
1
Posts: 26
Reputation: 497

Post » Thu Aug 28, 2014 7:58 pm

using the pin behaviour should work..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Aug 28, 2014 7:59 pm

Condition: object On Collision with butterfly
Action: Pin butterfly to object

You're looking for Pin behavior.

Ok, a ninja got ninja'ed. :|
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Fri Aug 29, 2014 1:45 am

Thanks a bunch. I just get a mental block sometimes! I was making that a whole lot more complicated than it needed to be.
B
7
S
1
Posts: 26
Reputation: 497


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest