|

- 帖子
- 197
- 积分
- 26
- 技术分
- 0
- 来自
- 福建
- 在线时间
- 42 小时
- 注册时间
- 2006-1-29
|
2#
发表于 2008-8-2 14:20
| 只看该作者
把人物换成箭头,道理是一样的
让图象翻转不行了
原来是向上的,你要让它向左时
if(Key.isDown(Key.LEFT)){
this._x-=3
this._rotation=270
}
向右时
if(Key.isDown(Key.LEFT)){
this._x+=3
this._rotation=90
}
向上时
if(Key.isDown(Key.LEFT)){
this._y-=3
this._rotation=0
}
向下时
if(Key.isDown(Key.LEFT)){
this._y-=3
this._rotation=180
} |
|