| 赞 | 0 |
| VIP | 17 |
| 好人卡 | 0 |
| 积分 | 1 |
| 经验 | 1022914 |
| 最后登录 | 2017-2-4 |
| 在线时间 | 10 小时 |
Lv1.梦旅人 月下可怜人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 10 小时
- 注册时间
- 2005-11-23
- 帖子
- 4085

|
呵呵,LZ的问题令人滋生一个非常有趣的想法,也是很久以前做的远景编辑可视化的思想基础。
脚本,插入main之上,
- class Game_Map
- def draw_world(x, y, here, there, _self = nil)
- _self ? (sx, sy = $game_player.x, $game_player.y) : (sx, sy = x, y)
- @map.data[sx, sy, here] = there
- save_data(@map,sprintf("Data/Map%03d.rxdata", @map_id))
- end
-
- end
复制代码
使用方法:事件的脚本中输入,
$game_map.draw_world(X坐标, Y坐标, 图层, 图块ID, 是否为主角坐标(若真true,则X、Y坐标无效))
改变世界
![]()
|
|