Took me just ten seconds to find it:

Code:

function main()
{
level_load (work10_wmb);
while(1)
{
if(key_b){
camera.x = camera.x + 1;
}
wait(1);
}
}



You have 3 }'s but only 2 {'s and that's what's causing it.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials