How do I compare VectorX

Get help using Construct 2

Post » Fri May 16, 2014 10:59 am

Hy,

I don't understand why I can't compare VectorX or VectorY in the platform behavior. I want kind of this expression. If VectorX is less than 0 set object mirrored.
Anyone got an idea.

Thanks
B
5
Posts: 18
Reputation: 263

Post » Fri May 16, 2014 1:33 pm

Sure you can , use the system condition

Compare two values
Compare any two expressions (which can either numbers or text) with each other. They can be compared as Equal, Not equal, Less, Less or equal, Greater or Greater or equal.

system > sprite.platform.vectorx<0 sprite set mirrored
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Fri May 16, 2014 1:46 pm

use @granpa method but the first condition has to be the System condition "For Each" (with the object that has to be affected)

Since otherwise not all instance of the object will be used in the "Compare two values"
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Fri May 16, 2014 3:12 pm

Thanks I didn't know that it is this easy.
B
5
Posts: 18
Reputation: 263


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, R0J0hound and 4 guests