Movement command in script ?

● ARCHIVED · READ-ONLY
Started by Punisher699 3 posts View original ↗
  1. $game_player.set_direction(n)
    #Direction n = [2]Down [4]Left [6]Right [8]Up
    Script calls

    put after $game_player.moveto
    Code:
      def teleport_player(index)
        # // Method for teleporting the player to the spawn event. (if exists)
        $game_map.setup(@tp_list[index][2])
        $game_player.moveto(@tp_list[index][3][0], @tp_list[index][3][1])
        fadeout_scene
        $game_map.autoplay
        $game_map.refresh
        $game_player.animation_id = XAIL::TELEPORT::ANIM_ID unless XAIL::TELEPORT::ANIM_ID.nil?
        SceneManager.call(Scene_Map)
      end
  2. Ohh nice! It works like a charm !!
    thx for the link too !

    can be closed now :)