hi all hoping some clever coder can help me iv had this bug with game since i started ,starting to think theirs no solution can u prove me wrong.
the problem is with the main carictor of my game i have done this sort of coding before in other languages java,c++,blitz basic and never had any problems if u take a look at game press space bar to shoot 10% of the time animation will not retrun to what it should be on. this also happens in other movements of player caricttor have a fiddle and u can make this happen can some one steer me in right direction im getting headaches with it.
game link hotlz
and here is a caption of movement/animcode which is identical to other move/animcode :-
// move right
if(Key.isDown(kr)) {
if (_root.floortouch==true) {
if (_root.anim!=4) {
gotoAndPlay("runright");
_root.anim=4;
}
} else {
if (_root.anim!=6) {
gotoAndPlay("jumpright");
_root.anim=6;
}
}
if (_root.xs<=6) _root.xs+=_root.xv;
_root.facing=1;
}