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
22
S
3
Posts: 451
Reputation: 2,135

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
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » Mon Feb 25, 2013 7:34 am

Ah perfect - thank you :)
B
22
S
3
Posts: 451
Reputation: 2,135


Return to How do I....?

Who is online

Users browsing this forum: Ethan, makkancs, Marxally and 21 guests