There is a repeat loop, a forever loop, an if then loop, an if then else loop, and a repeat until loop.
The Repeat loop will repeat the blocks for a specified number. The forever loop repeats the blocks forever. The if then loop will activate if a specified event occurs. The if then else loop is similar, but it will stop for a specified else statement. The repeat until loop repeats until a specified event.
The best loop would be the repeat until loop because you can input an event to stop the loop.
No. It doesn't make sense because it is repeating "Forever and Ever!!", and "Forever loop!". It is forever times forever which makes no sense.
An event is used to tell the sprite what to listen for. There are 6 different ways to do this under "Events".
Yes. Else is equivalent to "if not". The "not" block before the "key pressed" block basically turns that if into an else. The spippet on the right is the inverse of the one on the left.
Click HERE to return to homepage.