a script is causing flash to run slowly

1 post Page 1 of 1
Contributors
User avatar
rocky4126
VIP - Donator
VIP - Donator
Posts: 258
Joined: Mon Nov 16, 2009 7:39 pm

I've just decided to code a mario game in flash but I have an issue...

"A script is causing flash to run slowly"
Code: Select all
on (release) {
	//check marios position
	while (_root.mario.y != 329.4) {
		//if not, lets move him down
		var y = _root.mario.y;
		_root.mario.y = y-2;
	}
}
Image
1 post Page 1 of 1
Return to “Tutorials”