How do I make an arrow set its angle to the nearest object

Get help using Construct 2

Post » Sat Apr 19, 2014 6:12 am

Im making a game where you are in a tank. But need help to make an arrow set its angle toward the nearest object/enemy.
please help so i can make my first real project done(have made ALOT of small games to test stuff).
B
11
S
1
Posts: 5
Reputation: 679

Post » Sat Apr 19, 2014 7:41 am

a quick test capx that might help
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Sat Apr 19, 2014 9:43 am

Won't work. It says "Could not open project//?/C/.... because its newer version of construct 2. the project was saved in realease 167.2 or newer. your current release is 163." im using the free version(could be why). Try writing the events and actions. Thank you!
B
11
S
1
Posts: 5
Reputation: 679

Post » Sat Apr 19, 2014 10:07 am

the latest beta is at the bottom of this (and most) pages.
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Sat Apr 19, 2014 10:16 am

what if there is more of the same object?
B
11
S
1
Posts: 5
Reputation: 679

Post » Sat Apr 19, 2014 10:55 am

same of which object: sprite or arrow?
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
91
S
30
G
22
Posts: 1,985
Reputation: 20,149

Post » Sat Apr 19, 2014 2:05 pm

I wan't to make the arrow point at the nearest enemy. So you can find/destroy them and complete the level.
B
11
S
1
Posts: 5
Reputation: 679

Post » Sun Apr 20, 2014 7:16 am

here you go - still latest beta.

event 1 and event 2 are two ways to do a similar job - not to be used together , only use event 1 OR event 2
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Sun Apr 20, 2014 10:23 am

Thanks lets hope my internet will get to work. So i can download the latest beta(found it!).
B
11
S
1
Posts: 5
Reputation: 679

Post » Sun Apr 20, 2014 12:46 pm

Give arrow turret behavior!
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
91
S
30
G
22
Posts: 1,985
Reputation: 20,149


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 8 guests