It's because you haven't pressed key_w in the first frame, and therefore the loop in function spam_objects just stops without running even once smile

Edit: You should be using something like this:
Code:
function spam_objects()
{
	while (1)
	{
		if(key_w)
		{
			spawn_object();
		}
		wait(10);
	}
}



Last edited by Claus_N; 07/24/09 20:57.