def _update_comand_input_for_spawn(group)#定义 _更新生成(组)的命令和输入 ↑关联 #-<方向键>------------ if Input.repeat?(Input::UP) #如果输入重复?(输入::向上) #p $game_screen.tone.red #如果@efs团队出生点。包括?([$游戏玩家.x,$游戏玩家.y-1]) if @efs_team_spawn.include?([$game_player.x,$game_player.y-1]) #$游戏系统。se播放($数据系统。光标se) $game_system.se_play($data_system.cursor_se) #取消使地图移动(@团队显示区域) cancel_make_map_move(@team_display_area) #$游戏玩家。移动到($游戏玩家.x,$游戏玩家.y-1) $game_player.moveto($game_player.x,$game_player.y-1) #显示可移动组(组) display_move_able_groups(group)#↓关联 else#否则 #$游戏系统。se播放($数据 系统.蜂鸣器se) $game_system.se_play($data_system.buzzer_se) end return#返回 end if Input.repeat?(Input::DOWN) if @efs_team_spawn.include?([$game_player.x,$game_player.y+1]) $game_system.se_play($data_system.cursor_se) cancel_make_map_move(@team_display_area) $game_player.moveto($game_player.x,$game_player.y+1) display_move_able_groups(group)#↓关联 else $game_system.se_play($data_system.buzzer_se) end return end if Input.repeat?(Input::RIGHT) if @efs_team_spawn.include?([$game_player.x+1,$game_player.y]) $game_system.se_play($data_system.cursor_se) cancel_make_map_move(@team_display_area) $game_player.moveto($game_player.x+1,$game_player.y) display_move_able_groups(group)#↓关联 else $game_system.se_play($data_system.buzzer_se) end return end if Input.repeat?(Input::LEFT) if @efs_team_spawn.include?([$game_player.x-1,$game_player.y]) $game_system.se_play($data_system.cursor_se) cancel_make_map_move(@team_display_area) $game_player.moveto($game_player.x-1,$game_player.y) display_move_able_groups(group)#↓关联 else $game_system.se_play($data_system.buzzer_se) end return end end
布阵窗口背景图.png (15.44 KB, 下载次数: 24)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |