How do I limit catapult controls to only a small area?

Get help using Construct 2

Post » Tue May 19, 2015 3:27 am

I'm working on a basketball free throw game with catapult physics. It's working well, except for the fact that if I touch any part of the screen that's not part of the ball, it still acts like I'm aiming the ball. Is there a way to only limit the catapult touch controls to the area around the ball only? It makes it frustrating when I click the Pause button and the ball launches off in a weird direction.

Thanks in advance!
B
4
S
1
Posts: 8
Reputation: 743

Post » Tue May 19, 2015 4:13 am

You could have an invisible sprite that describes the area of effect.
then in the logic..have your controls active only when in touch with that sprite?
B
17
S
4
Posts: 19
Reputation: 1,826

Post » Tue May 19, 2015 4:39 am

That's a great idea. I'll give it a shot and report back.
Thanks!
B
4
S
1
Posts: 8
Reputation: 743


Return to How do I....?

Who is online

Users browsing this forum: Cha0tiXGamer, Google [Bot], ketramtu18, MaujDeveloper and 9 guests