How do I simulate the push and impulse of Air Hockey

Get help using Construct 2

Post » Thu Jun 22, 2017 2:09 pm

Hi everyone, I'm new and i wanna finish my test project; but i need to know how simulate the push (hit), and the impulse to a ball like in Air Hockey or in billar.

Can anyone give me a sample of how to do that?

Thank you.
B
5
S
1
Posts: 5
Reputation: 335

Post » Thu Jun 22, 2017 4:23 pm

The easiest way is with the "Physics" behavior, which is designed to do this specifically. Just remember to set world gravity to 0 so that objects with physics behavior don't automatically fall to the bottom of the screen.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
46
S
11
G
20
Posts: 363
Reputation: 14,199

Post » Thu Jun 22, 2017 9:36 pm

Hi @cjbruce, I have already done it but it is not the complete solution. I can not get the ball to go off so there are no rebounds and slowing down. I have already used bullet and physical behaviors but nothing.

I hope you understand what I want to indicate that I require
B
5
S
1
Posts: 5
Reputation: 335

Post » Fri Jun 23, 2017 12:29 pm

Ah. How are you controlling the puck? Possibly with the Drag-and-Drop behavior?
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
46
S
11
G
20
Posts: 363
Reputation: 14,199

Post » Fri Jun 23, 2017 5:55 pm

I found the solution...Thanks everyone
B
5
S
1
Posts: 5
Reputation: 335

Post » Mon Jul 03, 2017 4:09 pm

Hi Jhorbam, willing to share your solution?
B
17
S
2
Posts: 30
Reputation: 1,448

Post » Mon Jul 03, 2017 11:13 pm

Sure Zooid, and it's published now
https://www.scirra.com/arcade/sports-games/futbolin-colombiano-19166
I hope your comments
B
5
S
1
Posts: 5
Reputation: 335

Post » Tue Jul 04, 2017 10:06 pm

@Jhorbam What was the solution so that we all may learn.

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
32
S
15
G
3
Posts: 356
Reputation: 5,269

Post » Tue Jul 04, 2017 10:37 pm

In my last message i did put the link
B
5
S
1
Posts: 5
Reputation: 335


Return to How do I....?

Who is online

Users browsing this forum: stevenode and 11 guests