Cause decimals can give wrong calculations if its too large. (Probably not the exact reason)
Example: 1/3
If you really need decimals, You can use them in 1 big calculation in the expression then it outputs into a whole number. Whole numbers makes it really easy since everything runs with it in Flowlab.
So Flowlab currently uses a single datatype for consistency and simplicity, so that there is no need to worry about which outputs and inputs can connect together. Integers made the most sense here for a few different reasons:
@“JR 01” is correct that one reason is because floating point values are stored as estimates, and can be tricky and confusing to manipulate even for experienced developers
Aligning objects on non-pixel coordinates can make the rendering blurry in some cases
Pretty much whatever you want to do with floating point values in Flowlab, you can used scaled integers for instead, e.g. instead of using “0.5” to represent half, use “50”. (This actually doesn’t work too well in some cases, though - it would be nice to use 0 to 1 values for sin/cosine calculations for example)
I do expect to have a second datatype though, which will be strings. This will bring all sorts of new concerns about connecting blocks together, so we’ll see…
Hi pleaseeeeeee make it to where I can change sideways velocity? For example for the flowjam I am making a spaceship A.I. but the motor keeps on making it fly away if it tries to turn, could I stop sideways velocity?
@grazer I just played around with the blend block in my Flowjam game. Definitely helped my lighting effects! Might have a use for the materials block as well. Nice adds! Thanks!
Hey, @grazer! This is absolutely amazing! I’m loving it so far! BUT, something big happened, and before it happens to anyone else, (supposing it even does) Fallout Anarchy just lost a huge amount of objects, along with their corresponding behaviors. Their sprites were replaced with red boxes, but the size of the actual object wasn’t changed. I’d love it if you could look into this, if possible. I really don’t want this to happen to any other users, because it really popped my bubble.
Hey @browngr - there were some server hiccups last night, I think that may have been causing your red (not loading) sprite issues. It seems Ok to me now though - let me know if you still see this issue.
Could we be able to set the gravity for individual levels at some point? I accidentally ruined the physics in one of the levels in my game and decreasing the players density didnt help… lol
@meburningslime, the NOR gate outputs only when it has no input.
The only way to turn it off is by using an always, proximity set to 0, a timer set to 0 or another NOR gate.