On collision set position to another object

Get help using Construct 2

Post » Wed May 14, 2014 10:25 am

Hy everyone,

I did the platformer tutorial and I love the simplicity of construct2. Now i would like to do my own platform game. I want program that a object stay with another object on collision. For example I have a player he is collecting a ball and the ball stay at the same position as the player. When the player got the ball and collide with the enemy, the enemy will stay with the ball.
Anybody has a solution how I can fix this.

Thanks in advance
B
5
Posts: 18
Reputation: 263

Post » Wed May 14, 2014 5:00 pm

Someone has a suggestion?
B
5
Posts: 18
Reputation: 263

Post » Wed May 14, 2014 6:41 pm

You can use the Pin Behavior. See the attached example (use latest beta of C2, v169 or higher).
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Thu May 15, 2014 1:48 pm

Thanks for your suggestion.
B
5
Posts: 18
Reputation: 263

Post » Thu May 15, 2014 3:03 pm

You are welcome!

Now that I think of it, I think that this is more like something that you want. Even if the game play is totally different from what you have in mind, the pin mechanics follow what you describe.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests