Comparing user 'Y' values

Get help using Construct 2

Post » Thu Nov 10, 2011 7:12 pm

I want to compare two objects Y values but I want to add the objects height. Here's what I mean:



Where it say's "Y >" I want "Y + <object's height >" but as you can see all I can select is 'Compare Y'. Is there another way?

Basically what I want to say is something like:

If player's Y + height is greater than block's Y + height...Nickydude2011-11-10 19:15:13
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Thu Nov 10, 2011 7:23 pm

System - Compare two values
In there you use the expressions you want.
Like for example
[code]Mario2.Y + Mario2.Height >= Block.Y + Block.Height[/code]
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Nov 10, 2011 7:25 pm

Brilliant, thanks Kyatric, much appreciated. Nickydude2011-11-10 19:25:19
B
72
S
25
G
9
Posts: 382
Reputation: 10,649


Return to How do I....?

Who is online

Users browsing this forum: emoticon, KeetonCat, makkancs, Matthew de and 27 guests