赞 | 168 |
VIP | 0 |
好人卡 | 0 |
积分 | 151 |
经验 | 1422 |
最后登录 | 2024-3-4 |
在线时间 | 2273 小时 |
Lv4.逐梦者
- 梦石
- 2
- 星屑
- 13088
- 在线时间
- 2273 小时
- 注册时间
- 2011-6-4
- 帖子
- 613
|
本帖最后由 真·可乐 于 2021-3-3 20:19 编辑
这个不是事件脚本的问题,查阅一下Game_CharacterBase 396-400行,工程中跳跃事件被触发时,实际上角色并没有走到跳跃图块上
- def check_event_trigger_touch_front
- x2 = $game_map.round_x_with_direction(@x, @direction)
- y2 = $game_map.round_y_with_direction(@y, @direction)
- check_event_trigger_touch(x2, y2)
- end
复制代码
而Jumping Tiles中是这样写的
- def update_jumping
- return if $game_map.interpreter.running?
- return unless on_jumping_floor? #角色需走到跳跃图块上才会执行下面的内容
- return if moving?
- #~ move_straight(@direction)
- ##########
- case @direction
- when 2
- jump(0, 1)
- when 4
- jump(-1, 0)
- when 6
- jump(1, 0)
- when 8
- jump(0, -1)
- end
- ##########
- end
复制代码
等我想一下解决方法
有了,注意不止修改了脚本,还修改了地图通行
Data改.zip
(186.2 KB, 下载次数: 81)
|
评分
-
查看全部评分
|