@117478123@ 2008-5-21 18:57
关于横版游戏的多个问题?
1.在横版游戏中人物的跑动的代码应该怎么写呢?比如:街机游戏恐龙新世纪中人物理的跑动用代码怎么实现呢?
2.关于出招问题:当按下出招键时如:M 时主角会发轻拳,当不停的按时主角会出轻拳,重拳,重脚这样的顺序出招呢?
CEV3 2008-5-23 19:13
写在人物上
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (this._x>80) {
this._x -= 10;
}
else {
_root.map._x += 10;
}
}
if (Key.isDown(Key.RIGHT)) {
if (this._x<480) {
this._x += 10;
} else if (this._x<600){
_root.map._x -= 10;
}
}
if (Key.isDown(Key.UP)) {
_root.player._y -= 10;
}
if (Key.isDown(Key.DOWN)) {
_root.player._y += 10;
}
}
@117478123@ 2008-5-23 23:08
比如:快速按前进时会变成跑这种效果而不是人物的移动
kyo2005-3-3 2008-5-27 17:37
路过
breathxue 2008-5-27 23:36
[quote]原帖由 [i]CEV3[/i] 于 2008-5-23 19:13 发表 [url=http://space.flash8.net/bbs/redirect.php?goto=findpost&pid=2174210&ptid=354975][img]http://space.flash8.net/bbs/images/common/back.gif[/img][/url]
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (this._x>80) {
this._x -= 10;
}
else {
_root.map._x += 10;
}
}
if (Key.isDown(Key.RIGHT)) {
if (this._x [/quote]
3.0时代了,这样的东西拿不出手啊
@117478123@ 2008-5-31 10:50
额!
没人帮忙
自己顶起来
michaelkua 2008-6-3 04:58
高薪诚聘!!!深圳市iLemon网络科技高薪诚聘WebGame程序开发人才加盟
*** 作者被禁止或删除 内容自动屏蔽 ***