christian_s
12-07-2007, 01:53 PM
For training purposes, I'm making yet another version of this classic arcade game. I'm having an issue, with the movement of the 55 aliens in the game.
I have isolated the code for the alien movement, into this file:
http://www.actiontime.dk/spaceinvaders/index.html
Fla can be downloaded here:
http://www.actiontime.dk/spaceinvaders/si4.fla
The problem is, that the lower row of aliens, is beeing misplaced, when the cluster of aliens are changing direction - resulting in complete misplacement of all the aliens.
Can someone spot the problem?
By the way, the button 'FJERN ALIEN' means 'REMOVE ALIEN' in English.
The function of this button, is to remove aliens row by row, to check if the alien movement script, is performing correctly, while the number of aliens decreases.
But why does the lower row of aliens, get misplaced on the x-axis, on change of direction???
I have isolated the code for the alien movement, into this file:
http://www.actiontime.dk/spaceinvaders/index.html
Fla can be downloaded here:
http://www.actiontime.dk/spaceinvaders/si4.fla
The problem is, that the lower row of aliens, is beeing misplaced, when the cluster of aliens are changing direction - resulting in complete misplacement of all the aliens.
Can someone spot the problem?
By the way, the button 'FJERN ALIEN' means 'REMOVE ALIEN' in English.
The function of this button, is to remove aliens row by row, to check if the alien movement script, is performing correctly, while the number of aliens decreases.
But why does the lower row of aliens, get misplaced on the x-axis, on change of direction???