PlayMaker Help & Tips > PlayMaker Help
less than greater than
gamedivision:
do we have anything in the form of if less than but greater than do this or do that event
thank you
kiriri:
Hey,
let's say we want to check if something is smaller than 10, but bigger than three:
Then we first use a float compare which checks if the float is bigger than 3. If it is smaller, this action sends the FAIL event. If it is bigger, it sends nothing.
Then in the same state we add another float compare action (after the previous one). This action now compares if the float is smaller than 10. If it is, it sends the event FINISHED. If it isn't, it sends FAIL.
So what we end up is a state that sends FAIL if either of the 2 conditions is not met. It sends FINISHED if both are true.
gamedivision:
ahh so it doesn't pass to the next float compare unless it satisfies the first
kiriri:
yep, states are processed top to bottom :) It allows for a number of awesome techniques ;)
will_brett:
This video explains something very similar really well.
//www.youtube.com/watch?v=bHxgjTu5crk
Navigation
[0] Message Index
[#] Next page
Go to full version