"Flick a Ball"

Get help using Construct 2

Post » Sun Jan 06, 2013 2:24 am

Could not find an answer in the forum search or the manual so here it goes:

I want to "Flick" a ball with touch controls (at the same speed and angle as the flick) by using physics.

Would be grateful for any help I can get TheNormalGeek2013-01-06 02:25:19
(\__/)
(='.'=)
(")_(")
B
20
S
9
G
1
Posts: 68
Reputation: 3,057

Post » Sun Jan 06, 2013 3:11 am

I've been thinking about making a game to use such mechanics. So I'm interested as well. I'm going to see about creating a quickie on this tonight. If someone doesn't do it first :D



It needs some serous tweeking before it's usable.
https://dl.dropbox.com/u/14087254/throwTest.capx

however this seems to be the direction to go. I used anywhere touch for now since tracking by checking to see if touch is on top of an object and following, just doesn't work that well. Once you start tracking you need to track by the specific touchID not if it's "inTouch".jayderyu2013-01-06 03:22:47
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Sun Jan 06, 2013 4:20 am

Oddly enough I was toying around with physics earlier. So here's a modified example to fit your needs. Will need some tweaking to get the speed right I think. Play around with the "/5" in event 3. You may need to clamp the value so it doesn't go ballistic (pardon the pun) ;)

https://dl.dropbox.com/u/666574/uneven%20landscape%20collisions%20flick%20ball.capx
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Fri Jun 13, 2014 5:04 pm

can you replace this capx? thanks
B
5
Posts: 37
Reputation: 303


Return to How do I....?

Who is online

Users browsing this forum: ManuelPerez and 20 guests