How do I do click and fling objects?

Get help using Construct 2

Post » Sun Oct 12, 2014 5:25 am

Okay so a while ago I made a game in GameMaker: Studio where you would click on the character and kind of swipe the mouse in a direction and when you let go of the left mouse button the character would be tossed in the direction, bounce off the wall he hit and keep moving, while slowing down from the friction. Does anyone know any tutorials/forum posts/anything that could point me in the direction of how to do this on Construct 2? I lost the game on my old computer and I wanted to revisit it and see what I could do with it in C2 rather than GMS. Any input is extremely welcomed!
B
12
S
2
Posts: 57
Reputation: 799

Post » Sun Oct 12, 2014 9:27 am

Here is one approach, you can switch to physics for a more precise control of the movement.

swipe with mouse.capx
You do not have the required permissions to view the files attached to this post.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Mon Oct 13, 2014 3:14 am

Thank you!!! Ill check it out, I found one with a basket ball also, so maybe looking at both of them I can piece something together!
B
12
S
2
Posts: 57
Reputation: 799

Post » Wed Oct 15, 2014 1:26 am

Lof wrote:Here is one approach, you can switch to physics for a more precise control of the movement.

swipe with mouse.capx

Thanks! Its like 90% perfect! I never thought of using the bullet behavior for it, thats genius! :D
B
12
S
2
Posts: 57
Reputation: 799

Post » Wed Oct 15, 2014 4:37 am

You're welcome!
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Fri Oct 17, 2014 6:07 pm

one last question for you, Ive been playing around with it but I just cant seem to get it to work. Basically I need to get the sprite to rotate and point in the direction its moving after you filing it... im sure its really damn easy, I just have no idea where Id find that info or figure that out.
B
12
S
2
Posts: 57
Reputation: 799

Post » Sat Oct 18, 2014 5:42 am

Just move the angle action to on mouse release

swipe with mouse.capx
You do not have the required permissions to view the files attached to this post.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Sat Oct 18, 2014 5:59 am

oh okay that makes sense. Thanks!
B
12
S
2
Posts: 57
Reputation: 799


Return to How do I....?

Who is online

Users browsing this forum: plinkie, Yahoo [Bot] and 9 guests