加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
我这样写没用,速度还是没变
#-------------------------------------------------------------------------- # 强制移动效果 #-------------------------------------------------------------------------- def force_move_effect(action_id) a = @move_speed #跳跃 force_jump = Database_Bullet::FORCE_JUMP[action_id] jump(0,0) if force_jump == true #移动 force_move = Database_Bullet::FORCE_MOVE[action_id] #向前进2格 if force_move != nil and force_move == 4 @move_speed = 6 move_forward move_forward #前进1格 elsif force_move != nil and force_move == 1 @move_speed = 6 move_forward #前进3格 elsif force_move != nil and force_move == 5 @move_speed = 6 move_forward move_forward move_forward #前进4格 elsif force_move != nil and force_move == 6 @move_speed = 6 move_forward move_forward move_forward move_forward #前进5格 elsif force_move != nil and force_move == 7 @move_speed = 6 move_forward move_forward move_forward move_forward move_forward elsif force_move != nil and force_move == 2 @move_speed = 6 move_backward #向后退3格 elsif force_move != nil and force_move == 3 @move_speed = 6 move_backward move_backward move_backward end @move_speed = a end
#--------------------------------------------------------------------------
# 强制移动效果
#--------------------------------------------------------------------------
def force_move_effect(action_id)
a = @move_speed
#跳跃
force_jump = Database_Bullet::FORCE_JUMP[action_id]
jump(0,0) if force_jump == true
#移动
force_move = Database_Bullet::FORCE_MOVE[action_id]
#向前进2格
if force_move != nil and force_move == 4
@move_speed = 6
move_forward
move_forward
#前进1格
elsif force_move != nil and force_move == 1
@move_speed = 6
move_forward
#前进3格
elsif force_move != nil and force_move == 5
@move_speed = 6
move_forward
move_forward
move_forward
#前进4格
elsif force_move != nil and force_move == 6
@move_speed = 6
move_forward
move_forward
move_forward
move_forward
#前进5格
elsif force_move != nil and force_move == 7
@move_speed = 6
move_forward
move_forward
move_forward
move_forward
move_forward
elsif force_move != nil and force_move == 2
@move_speed = 6
move_backward
#向后退3格
elsif force_move != nil and force_move == 3
@move_speed = 6
move_backward
move_backward
move_backward
end
@move_speed = a
end
|