Hello, can someone help me explain why this simple event isn’t working?
I suppose this is setup so that If player Y position is above the trunk’s Y position, the trunk should fade out. Otherwise the Trunk stays visible.
What I get is the trunk permanently invisible no matter where i position the player. The center and origin points of both objects are setup accordingly.
I fixed it but i dont know why or how it’s fixed. I had to remove “Center” in the expressions but the actions were reversed… If i put it how it is in that image everything works… but why does it work? Is the Y axis reversed? Is that what it is?
Doesn’t the “Center” expression represent the center point of the object? I used this expression before without a hitch.
The numeric comparison does not filter the set of trees to reference in the actions, it just returns true or false. The action will then be on all trees.
Thanks. I had to add a “For each object” condition though. Otherwise i would only apply if I was above all trees.
I had to change the conditions to refine it better though. Where’s an expression that compares the position between two objects in respect to a range of angles though? For example with this image if player is within 250-290 degrees of TreeTrunk’s, then TreeTrunk fades out. If there’s a way to incorporate with the boundingbox expression even better to account for the width.