How do I "drag" objects like in Soccer Stars?

Just started using Construct 2? Post your questions here

Post » Fri Jun 05, 2015 11:37 pm

Hello Community,

first, sorry for my bad english as it is not my native language.
I want to have balls which I can drag behind to aim and shoot the ball like in Soccer Stars game.
Watch this video to better understand: youtube .com /watch?v=Af7daSP9hQM

Thanks
B
3
Posts: 3
Reputation: 181

Post » Sat Jun 06, 2015 10:16 am

Using the bullet behaviour it would be something like:

on puck touched
> set puck instance variable selected to true

on touch released
puck is selected
> Puck set bullet speed to : distance(puck.x,puck.y,touch.x,touch.y)
> Puck set bullet angle to : angle(puck.x,puck.y,touch.x,touch.y)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jun 06, 2015 1:21 pm

Thanks for your answer!
As I am a beginner, do you have some example of this?
B
3
Posts: 3
Reputation: 181


Post » Sat Jun 06, 2015 3:58 pm

Message: RedEars is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Lordshiva1948 wrote:RedEars Many example for beginner in below link


Great Link, I will take a look. Thanks!
B
3
Posts: 3
Reputation: 181

Post » Sat Jun 06, 2015 6:59 pm

Most welcome pass it on to your friends too
B
249
S
39
G
15
Posts: 1,952
Reputation: 40,586


Return to Beginner's Questions

Who is online

Users browsing this forum: brunopalermo and 0 guests