How to do 'If' Statements
Probably a dumb question, but how exactly do you do if statements, like comparing a slider or current score? I assume with the calculator somehow?
Also how to find who has the highest score? Which gadgets to compare multiple scores?
-
If-statements are somewhat contextual in Dreams. Some things don't require you to tediously draw them up (which I'm going to explain in a second) and you can just expect certain gadgets to work as is, with the ternary stuff running behind the scenes. Say trigger zones, you already know how these work I bet, and they technically have one or two "ifs" in there.
So if you get a positive signal from, say once more a trigger zone, and wire it into the power node of an emitter, that's basically an if-statement. Now, comparing a value against another is pretty easy, you just need a calculator gadget. Enter its settings (L1 + square, if you didn't know that, do the tutorials!) )and change it to whatever you like, there are all kinds of arithmetic tools you might need and many more pre-fabs created by the community (sine, rotators, conversions... you name it).if you browse for logic.
Please sign in to leave a comment.