so, if you to modify a variable, go to {x, y} or find an item in a list, but you want a different number depending on a variable there are two ways i know of. you can use if else, or a formula. which one is better? if can be easier, but do they run slower? i normally try to use formulas, but are they really better? thanks, i appreciate the help
Offline
estorken wrote:
so, if you to modify a variable, go to {x, y} or find an item in a list, but you want a different number depending on a variable there are two ways i know of. you can use if else, or a formula. which one is better? if can be easier, but do they run slower? i normally try to use formulas, but are they really better? thanks, i appreciate the help
I don't quite get what your asking. If I am correct, you want to make a variable which will set, depending on what the variable is already set to? I don't think thats it, can you explain?
Offline
It really depends on the purpose.
Generally, I prefer using formulae for my work. They give smoother results, take up a lot less blocks and run 100 times faster.
However, IF blocks are much more useful if you need to test for booleans which don't give usable numbers.
To pick from a list, to set the position of a sprite or other purposes which involve more than 3 possible values, formulae are easier and better.
Last edited by LS97 (2011-05-19 12:08:46)
Offline