I have lot of problems with my FLASH game...
On this link you can see how it works for now..
http://www.zamislim....log/?page_id=48
I have problems.. becouse I would like to make bottom with HIT test, that my caracter could die.. and I don't know how to make this...
CODE, problem is.. that I have gravity, and my caracter keep faling down trough the stage (I would like to limit his flying space)...
this.onEnterFrame = function() {
if (Key.isDown(Key.LEFT) && (_root.dragon_mc._x >= 0)) {
_root.dragon_mc._x -= dragonSpeed;
} if (Key.isDown(Key.RIGHT) && (_root.dragon_mc._x <= stageHeight)) {
_root.dragon_mc._x += dragonSpeed;
} if (Key.isDown(Key.UP) && (_root.dragon_mc._y >= 0)) {
_root.dragon_mc.stime = 0;
_root.dragon_mc._y -= dragonSpeed + 10;
} if (Key.isDown(Key.DOWN)&& (_root.dragon_mc._y <= stageWidth)) { //
_root.dragon_mc._y += dragonSpeed;
} if (Key.isDown(Key.SPACE)) {
bulletCounter++;
if ((bulletCounter % bulletDensity) == 0) {
fireBullet();
}
}
}
this.dragon_mc.onEnterFrame = function() {
this._y -= gravity;
}
Other problem,
How can I remove everything from the stage at the same time...
I need code *I really don't know how to do this..
function removeEverything() {
blabalbalbal
}
this is for now...
Edited by Sergej, 15 June 2007 - 09:14 AM.
