hansolo
02-21-2008, 09:22 PM
how can i make clip go off the stage by pressing the space bar,
as in effect of a game cheers any help....
var bullet_speed:Number = 10;
var bullet_y:Number = 300;
onEnterFrame = function(){
movestuff;
}
if (Key.isDown(Key.SPACE)) {
if (bullet && bullet_y < 0){
bullet_y = bullet_y - bullet_speed;
}
i ve tried to subtract the bullet speed from the y position but nothing happens any help
as in effect of a game cheers any help....
var bullet_speed:Number = 10;
var bullet_y:Number = 300;
onEnterFrame = function(){
movestuff;
}
if (Key.isDown(Key.SPACE)) {
if (bullet && bullet_y < 0){
bullet_y = bullet_y - bullet_speed;
}
i ve tried to subtract the bullet speed from the y position but nothing happens any help