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
23
S
3
Posts: 455
Reputation: 2,168

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
62
S
31
G
39
Posts: 1,194
Reputation: 26,482

Post » Mon Feb 25, 2013 7:34 am

Ah perfect - thank you :)
B
23
S
3
Posts: 455
Reputation: 2,168


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Husui, josevasquez, zenox98 and 16 guests