level 8
我想让我的角色在按下W前进的时候执行“run”的动作。
但是 If Inp.IsKeyPressed(TV_KEY_W) Then hero.SetAnimationByName "run"这样明显不行。
有没有检测按键按下但没弹起的语句
2013年08月12日 13点08分
1
level 7
你初始化set好之后 之后按w用playannimation
2013年08月14日 08点08分
3
你不是很明白他的意思。而且播放动画的确要一个专门的计算器
2013年08月18日 05点08分
回复 13318513339 :计时器
2013年08月18日 05点08分
回复 13318513339 :噢他是要到播完动画再停...而且 :modelview什么的可以用名字来确定开始帧
2013年08月18日 06点08分
level 4
设一个boolean值firstpast
if inp.iskeypressed(tv_key_w) and not firstpast then
firstpast = true
hero.setanimationbyname "run"
hero.setanimationloop true
else
firstpast = false
hero.setanimationbyname "idle" '空闲动作
end if
2014年11月29日 06点11分
4