Originally posted by Quacked
I'm a noob so I don't know what an infinite loop looks like :/
Look for this;
For(;
{
Some code
}
at the end of the code (before the last }) you need
wait 0.5; so it should look like this;
For(;
{
Some code
Wait 0.5;
}
For some reason, bo2 doesnt like having an infinite loop without a wait in there. You can replace the 0.5 with any number (time in secs) but it will delay it by that time.
What this for loop does is constantly executes the code within the brackets where I put "some code".
Usually a for loop has parameters for example
For(x=0; x < 10; x++)
{
self iprintln(x);
}
This would print numbers 0-10 on your screen - as it loops through, the x is increased by 1 and then stops. This doesnt need a wait command as it has a stop point.
As the infinite loop has no endpoint defined, it just carries on.
I know this isnt a very good explaination but hey, your original question is answered haha