>>168
・前回も押してたかチェックする  これどういうことですか
・何回リピートしたらいくつ増やす  これは条件式(if)でおkだよね?
>>169
スマン。 エラーの詳細って言うのは
タイプ  ArgumentError
メッセージ  wrong number of arguments (1 or 0)
バックとレース  'x' 'act'  って所か?初心者でスマン(汗

def act(input)
@x -= 8 if input.left
@x += 8 + x(input) if input.right
@x = 0 if @x < 0
@x = SCREEN_W-@image.w if @x >= SCREEN_W-@image.w
end
def render(screen)
screen.put(@image, @x, @y)
end
def x(input)
if input.b
if (@vx <= 4)
@vx += 2
elsif (@vx <= 6)
@vx += 1
end
else
@vx = 0
end
end
やっぱり、起動して→ボタン押すと止まる・・・
→ + B ボタンも止まる