NoidZ
Mind the world, need for panic
Hi,
Yet another thing which I'll probably like for just a few days but here's my question :lol: I'm just learing about actionscripting for games in Flash 8. This is what I what I've got:
function onEnterFrame() {
//buttonpressing
if (Key.isDown(Key.RIGHT)) {
player._x += 15;
}
if (Key.isDown(Key.LEFT)) {
player._x -= 15;
}
}
I'm creating a breakout game (just as startoff ofcourse) but what the hell am I supposed to do to stop the player when it has reached a certain point?
Thanks!!
Yet another thing which I'll probably like for just a few days but here's my question :lol: I'm just learing about actionscripting for games in Flash 8. This is what I what I've got:
function onEnterFrame() {
//buttonpressing
if (Key.isDown(Key.RIGHT)) {
player._x += 15;
}
if (Key.isDown(Key.LEFT)) {
player._x -= 15;
}
}
I'm creating a breakout game (just as startoff ofcourse) but what the hell am I supposed to do to stop the player when it has reached a certain point?
Thanks!!