hi there,
I have setup a scene and the Maincamera is controlled by some FSMs and Gui buttons.
If you press button "Next", the camera moves a certain amount of units in one direction (X-axis). If you press "prev", the camera moves the same amount "backwards" along the X-axis.
I set it up to act like a "slideshow" (next = camera shows next object and so on), prev is to get back to the previous object.
I got a Vector 3 variable setup at 0, 0, -100
The "next FSM" just adds +300 units on the Vector 3 x-axis, the "prev FSM" just subtracts -300 units on x-axis.
You may see the problem here, because I must make sure, that the "prev FSM" only subtracts the 300 units, if the camera´s position is not the starting-position (0,0,-100).
Basically "prev" should/must work only, if Vector 3 x-axis is >0
Is there a way to set this up in FSM-Statements? Normally, I would do a compare or and IF statement, when coding it manually - how to translate this in Playmaker FSM?
cheers!