设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索

#能把寻找小队事件点数改为取得地图X坐标Y坐标吗

查看数: 1387 | 评论数: 1 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2022-10-9 19:12

正文摘要:

本帖最后由 金芒芒 于 2022-10-10 10:32 编辑 RUBY 代码复制#出生点    @group_spawn = []    for i in 1..5      @group_spawn[i ...

回复

金芒芒 发表于 2022-10-9 22:15:23
  1. def group_spawn_x
  2.    for group_spawn_x in $game_map_x.values
  3. when 0
  4.       return  $team_group_1_x
  5.     when 1
  6.       return  $team_group_2_x
  7.     when 2
  8.       return  $team_group_3_x
  9.     when 3
  10.       return  $team_group_4_x
  11.     when 4
  12.       return  $team_group_5_x
  13.     end
  14.   end
  15. def group_spawn_y
  16.    for group_spawn_y in $game_map_y.values
  17. when 0
  18.       return  $team_group_1_y
  19.     when 1
  20.       return  $team_group_2_y
  21.     when 2
  22.       return  $team_group_3_y
  23.     when 3
  24.       return  $team_group_4_y
  25.     when 4
  26.       return  $team_group_5_y
  27.     end
  28.   end
复制代码

这样改是对的吗
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-21 02:33

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表