![]() ![]() ![]() ![]() The instance of this class is referenced by # $game_player. It includes event starting determinants and # map scrolling functions. #= class Game_CharacterBase #- # * Move Straight # d: Direction (2,4,6,8) # turn_ok : Allows change of direction on the spot #- def move_straight(d, turn_ok = true) = d) # added a direction check if != d set_direction(d) elsif set_direction(d) = d) = d) = reverse_dir(d)) = reverse_dir(d)) increase_steps elsif turn_ok set_direction(d) check_event_trigger_touch_front end end end #= # ** Game_Player #- # This class handles the player. It retains basic information, such as # coordinates and graphics, shared by all characters. #= # ** Game_CharacterBase #- # This base class handles characters. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |