(SOLVED!) How do I Catch an object?

Get help using Construct 2

Post » Wed May 21, 2014 12:46 am

Ok, I've looked but this one escapes me... Here is the set up. I have a character that moves left to right and when he does move he puts his hands up to catch objects coming from the sky.

How do I make it so when the object touches his hands only it sticks to his hands until I want to drop the object.

I've tried PIN, on create, spawn another object, none of these (If I'm doing them right) give that effect.

I need the object to stay in/on his hands even when he flips left to right until I want him to drop it.

Catch, Carry, Drop...

Thank you in advance...

Update. I played around with it and realized I had it set to on collision but it needed to be on overlap and now the object stays in the hands of the player now I just need to come up with a release method but this is good thank you.

ALLMarkMade
Last edited by ALLMarkMade on Wed May 21, 2014 9:35 pm, edited 1 time in total.
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
33
S
16
G
3
Posts: 358
Reputation: 5,398

Post » Wed May 21, 2014 4:22 am

Sounds like you would test if the falling objects have collided with his hands. On collision, you would then continually set the position of the object to the position of the hands.
B
10
S
3
Posts: 102
Reputation: 1,888

Post » Wed May 21, 2014 4:39 am

object from sky collide with you than object from sky destroy, spawn object from sky
not sure this word or not
and
object from sky is bullet, when collide with you, bullet speed 0 and pin
B
4
Posts: 5
Reputation: 235

Post » Wed May 21, 2014 8:45 pm

@foohoa, @farmerdwight

Thanks you for your response.

Ok here is what I tried and it's almost working.

I added an image point to the player's hands and set it to if the object touches player move object to image point.

However it will not stick so how do I make it stay on the image point no matter which way the player moves until I want it to drop the object?

Basically:

Catch
Carry
Drop

Thank you so much
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
33
S
16
G
3
Posts: 358
Reputation: 5,398

Post » Thu May 22, 2014 1:13 am

@ALLMarkMade

I don't see why it would move away.
Can you post a .capx?
B
10
S
3
Posts: 102
Reputation: 1,888

Post » Thu May 22, 2014 1:57 am

I had it set to collision so when the collision happened it stuck but after that it dropped, but once I changed it to on overlap it's sticking like glue.... :)

I'm not trying to figure out how to press a button and make it release from the image point and drop to the ground now.

Thanks
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
33
S
16
G
3
Posts: 358
Reputation: 5,398


Return to How do I....?

Who is online

Users browsing this forum: CrudeMik and 33 guests