Hockey Puck

Get help using Construct 2

Post » Sun Jan 11, 2015 8:33 pm

I am trying to get the effect of sliding on on ice. Like air hockey puck sliding. I added a move, physics, but some reason, I cant pick up the puck and slide it, ( it will be on mobile, so TOUCH would be how the user would pick it up. Any starting point? thx
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Sun Jan 11, 2015 9:50 pm

Here you go @Remmy112, I made a simple air hockey game for you (graphics from here: http://imgur.com/gallery/KQgRv).

You can play with the hitSpeedModifier variable, less means more power, and you can of course try moving the Elasticity and friction of the puck. Hope you like it.
You do not have the required permissions to view the files attached to this post.
B
39
S
9
G
4
Posts: 163
Reputation: 6,516

Post » Sun Jan 11, 2015 9:55 pm

are you for real.. wow. Thanks @OneMuppet. Totally appreciate this.
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Sun Jan 11, 2015 10:47 pm

@OneMuppet, so I see the reason why my way was not working. How would you handle, instead of the paddle hitting the ball, how would you manage this IF the user had to slide the puck. Something like, flicking it with your finger.. thanks. I was thinking it would be something like.. on touch of object ( behaviors would be drag & drop) .. so if they flicked it.. it would be as if they were the paddle. Hope this made sense.
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Thu Jan 22, 2015 5:43 pm

You can do it the same way as in the capx. Just resize the paddle to be smaller, like finger size, then make it invisible. Make an event so the paddle is always located where the players touch is at.

Edit: It's not exactly the flicking that you were looking for but it's a start anyways. :)
Edit2: also just noticed this is an older thread that was bumped by a bot. Sorry about that...
B
60
S
20
G
56
Posts: 1,077
Reputation: 35,941

Post » Thu Jan 22, 2015 6:47 pm

Damn good idea. I'll try it thx
B
9
S
2
Posts: 104
Reputation: 1,098


Return to How do I....?

Who is online

Users browsing this forum: htmlgames and 5 guests