<( <<> )><( <>> )> how do you use these two blocks and what do you use them for?
Offline
[blocks] <( X <>> Y )> [/blocks]means that X is grater than Y. Where the symbols lines meet that means that,the number where the lines meet is the smaller number. Now these block are booleans so they return a result of either true or false so if you type 3 > 1 it will return true if you type 3 < 1 it will return false.
X > Y means X grater than Y
X < Y means X less than Y
Usally you will put variable blocks (Those rounded edge blocks) in there so that the out come isn't the same all the time.
Last edited by what-the (2010-01-29 03:03:56)
Offline
what-the wrote:
[blocks] <( X <>> Y )> [/blocks]means that X is grater than Y. Where the symbols lines meet that means that,the number where the lines meet is the smaller number. Now these block are booleans so they return a result of either true or false so if you type 3 > 1 it will return true if you type 3 < 1 it will return false.
X > Y means X grater than Y
X < Y means X less than Y
Usally you will put variable blocks (Those rounded edge blocks) in there so that the out come isn't the same all the time.
thanks. i was hopinng to use them for something else but now i understand why it wont work.
Offline
One way they are often used is to contain a sprite's movement on the screen.
For example, IF (x position) > 240
Go to x (0) y (0)
So if the sprite went off the right side of the screen it would immediately go back to the center of the screen.
Or, if it goes beyond the right side of the screen you could call a new background [and send the sprite back to x (-240)] to continue journeying across the new background.
Or, using y values, keep a sprite from going too high or too low on the screen.
(One reason the ">" can be very useful is that if you said "IF (x position) = 240"...it might never happen. If the sprite is moving 5 steps at a time it might skip right on by the "240" position and so never trigger the next command.)
Offline