ZFG Posted September 3, 2008 Report Share Posted September 3, 2008 How could I make Sonic Change when Running a slopenlike the old Classics. Link to comment Share on other sites More sharing options...
Spike Posted September 3, 2008 Report Share Posted September 3, 2008 Okay, this is what I did for my game. In the draw event, instead of drawing Sonic's angle by the variable "animations_angle", change it to "tanimaions_angle". Now, in the End Step, put this code: if(animations_angle>=330.5 && animations_angle<=360){ tanimations_angle=0 } if(animations_angle>=0 && animations_angle<29){ tanimations_angle=0 } if(animations_angle>=29 && animations_angle<67.5){ tanimations_angle=45 } if(animations_angle>=67.5 && animations_angle<112.5){ tanimations_angle=90 } if(animations_angle>=112.5 && animations_angle<157.5){ tanimations_angle=135 } if(animations_angle>=157.5 && animations_angle<202.5){ tanimations_angle=180 } if(animations_angle>=202.5 && animations_angle<247.5){ tanimations_angle=225 } if(animations_angle>=247.5 && animations_angle<292.5){ tanimations_angle=270 } if(animations_angle>=292.5 && animations_angle<330.5){ tanimations_angle=315 } That's just my cheap way of doing oldschool 8-direction movement. Don't forget to make "tanimations_angle" a variable in the Create event, by the way. Link to comment Share on other sites More sharing options...
ZFG Posted September 3, 2008 Author Report Share Posted September 3, 2008 it doesn't work, I still move 360 and not 8 directional Link to comment Share on other sites More sharing options...
Recommended Posts