Quote:

You would need to format the code correctly. (It would look something like this)




A code can be formatted in anyway, so long as all the grammer is correct.

Code:

You can have:

action player1 { my.health = 50; my.enable_click = on; my.event = doSomething(); while(1) { my.x += 5 * (key_w - (key_s); wait(1); } }

and

action player1 {
my.health = 50;
my.enable_click = on;
my.event = doSomething();
while(1) {
my.x = 5 * (key_w - key_s);
wait(1);
}
}

and

action player1
{
my.health = 50;
my.enable_click = on;
my.event = doSomething();
while(1)
{
my.x = 5 * (key_w - key_s);
wait(1);
}
}



The only difference between the three formats are readability. So long as you have the right number of brackets/parenthesis and all the semicolons, any format works. (Bottoms my favorite). My point is that, coding errors aren't usually due to a bad format. But a bad format (such as the first example) makes it so much easier to screw up.

The reason why I like the third format is because you see all the brackets and you can easily tell when one is missing, whereas on first glance with the second one, the first bracket seems to be missing.


"Oh no, it's true! I'm a love magnet!" Calvin from Calvin and Hobbes My name's Anonymous_Alcoholic.