Distance between X's & Y's

Get help using Construct 2

Post » Mon Feb 25, 2013 7:13 am

Quick question - is there a way to use the distance expression with ONLY x or y?

ie. If (distance(Sprite1.X, Sprite2.X) < 300 and If (distance(Sprite1.Y, Sprite2.Y < 900)

Thanks
Steve
B
44
S
12
G
1
Posts: 545
Reputation: 4,271

Post » Mon Feb 25, 2013 7:28 am

How about abs (sprite1.x-sprite2.x) is less than 300 , etc ?
RamPackWobble2013-02-25 07:29:25
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 » Mon Feb 25, 2013 7:34 am

Ah perfect - thank you :)
B
44
S
12
G
1
Posts: 545
Reputation: 4,271


Return to How do I....?

Who is online

Users browsing this forum: matriax, R0J0hound and 19 guests