Started by Geust, June 25, 2010, 01:15:02 am
Quote from: earthnite on June 25, 2010, 08:27:07 pmit can move randomly in four directions, but not 8, even though it can move in 8 directions
class Game_Character #-------------------------------------------------------------------------- # * Move at Random #-------------------------------------------------------------------------- def move_random case rand(7) when 0 move_lower_left when 1 # Move down move_down(false) when 2 move_lower_right when 3 # Move left move_left(false) when 4 move_upper_left when 5 # Move right move_right(false) when 6 move_upper_right when 7 # Move up move_up(false) end end end