Bow and arrow help

Get help using Construct 2

Post » Fri Jan 03, 2014 5:24 pm

Hi,

I need some help making my first game, I am making a Bow and Arrow game, and can't figure how:
1) Tense the bow following the arrow movement.
2) How can I calculate the collison points (arrow and center) to set player points.

Here is the capx I'm working now.

https://dl.dropboxusercontent.com/u/165489339/Arch.capx

Thanks.
B
23
S
6
G
2
Posts: 22
Reputation: 1,996

Post » Fri Jan 03, 2014 9:45 pm

Well, you were definitely on the right track... I made the strings horizontal instead of vertical which seemed to make the "set angle toward" work better. Then I just placed them at the arrow x and y, and set the angle to the imagepoints on the bow, and set the width to the distance between the points.

capx here: www.rieperts.com/games/forum/Arch2.capx

As for telling what part of the target you hit, I was going to say make the target up out of 5 different circles (yellow, red, light blue, dark blue and white) that way you can tell be which one the arrow collides with...

But since your target circles were in even increments of 10 pixels, I just compared the y value of the end of the arrow to the y value of the target and calculated what part gets hit. (this is not always very accurate by the looks of it, but it is a start).AllanR2014-01-03 21:47:31
B
95
S
33
G
20
Posts: 438
Reputation: 17,640

Post » Sat Jan 04, 2014 12:12 am

Thanks AllanR that is exactly what I need!
B
23
S
6
G
2
Posts: 22
Reputation: 1,996


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, tarek2 and 26 guests