Forum Discussion
AmosSarrouy
2 years agoCommunity Member
"if-else" doesn't work with motion paths
I was trying to make a trigger that would move an object along one motion path if a variable was true, but along a different motion path is the variable was false.
"What a perfect opportunity to ...
JoseTansengco
2 years agoStaff
Hello Amos,
Thanks for reaching out!
In your first slide, the reason why the oval doesn't move up when the oval is clicked while in the down position is because it doesn't satisfy the condition that the ovalposition variable should have the value 'up'.
In this screenshot, you'll see the ovalposition variable with a value of down after clicking on the oval a first time, which prevents it from activating the move trigger.
The best solution here would be to have multiple triggers to account for the changing variable in your slide.
Hope this helps!