How do I limit the touch X

Get help using Construct 2

Post » Sat Mar 28, 2015 1:02 pm

I'm building simple arkanoid game with a bit of Twist.
The paddle is controlled by two touch. the center between two fingers(ex.thumbs) will become the position of the paddle, and the tilt between two thumbs will change the paddle angle.

The problem is how to limit the position of the paddle so it won't go beyond the border/mad I've made around the game?

Checking collision doesn't work in this case.
Limitting x of paddle also impossible, because the paddle can shift its angle.
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sat Mar 28, 2015 9:11 pm

Use clamp. See the topic below:
viewtopic.php?t=122310&p=872054#p872054
ImageImage
B
88
S
42
G
20
Posts: 717
Reputation: 19,717


Return to How do I....?

Who is online

Users browsing this forum: christina, Kyatric, omnipaws, oosyrag, ThePlagueDoctor and 10 guests