赞 | 45 |
VIP | 271 |
好人卡 | 233 |
积分 | 94 |
经验 | 181865 |
最后登录 | 2025-2-13 |
在线时间 | 2749 小时 |
Lv4.逐梦者 「Pemercyia」 泱 银 Urhurrenna
- 梦石
- 0
- 星屑
- 9402
- 在线时间
- 2749 小时
- 注册时间
- 2008-9-5
- 帖子
- 3542
   
|
在脚本“Game_Character 3”里面,找到:
- #--------------------------------------------------------------------------
- # ● 面向向下
- #--------------------------------------------------------------------------
- def turn_down
- unless @direction_fix
- @direction = 2
- @stop_count = 0
- end
- end
- #--------------------------------------------------------------------------
- # ● 面向向上
- #--------------------------------------------------------------------------
- def turn_up
- unless @direction_fix
- @direction = 8
- @stop_count = 0
- end
- end
复制代码 这两段(默认脚本中,这两段之间隔了向左和向右),然后注释掉方法里面的内容就可以了,
或者这样干:
- #--------------------------------------------------------------------------
- # ● 面向向下
- #--------------------------------------------------------------------------
- def turn_down
- return
- unless @direction_fix
- @direction = 2
- @stop_count = 0
- end
- end
- #--------------------------------------------------------------------------
- # ● 面向向上
- #--------------------------------------------------------------------------
- def turn_up
- return
- unless @direction_fix
- @direction = 8
- @stop_count = 0
- end
- end
复制代码 因为游戏默认开始面向下,所以需要在脚本“Game_Character 1”里面的初始化,默认42行:“@direction = 2”改一下赋值,
2468分别对应键盘的数字小键盘方向,可以自己改成左右方向。 |
评分
-
查看全部评分
|