Throw granade?

Get help using Construct 2

Post » Sat Nov 16, 2013 2:57 pm

Hi guys, any idea how to make throwing granades?
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Sat Nov 16, 2013 3:14 pm

Add Bullet behaviour to Sprite object and set gravity?
Then on spawn, rotate to the angle you want it to travel.

Is that what you mean?
B
15
S
5
G
7
Posts: 876
Reputation: 5,650

Post » Sat Nov 16, 2013 3:44 pm

I want to be able to throw it at particular point, retaining that bow shape trajectory typical for thrown objects.

My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Sun Nov 17, 2013 8:48 pm

I would also love to know this! I have hacked about by changing the angle of motion in relation to the distance and angle of the target, and while it works, it never works exactly right. I would like to know the formula for this.
B
28
S
8
G
5
Posts: 429
Reputation: 7,007

Post » Sun Nov 17, 2013 9:18 pm

I use physics, but I don't know how to set it up the way that would feel natural. Atm the further the target is the faster the grenade flies trough the which is awkward
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Mon Nov 18, 2013 6:17 pm

@megatronx
have alook
http://www.scirra.com/forum/parabola-tracjectory-tracing-with-physics-box2d_topic61895_page2.html
B
7
S
2
Posts: 44
Reputation: 668

Post » Mon Nov 18, 2013 6:51 pm

Thanks
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Unconnected, Waltuo, Yahoo [Bot] and 18 guests