or if (score = 200) {
velocity = 50;
}
sorry about the amount of posts, bumping down possible important info, but hey this would be cool if we can get it set up on this one place, and it would suck if it was covered in a further shootorial
here is what I put to try before I got health set up. it doesnt work but if someone can improve on it and let me know that would be cool
if (_root.scoreText.text = 200) {
velocity = 50;
}
hey this is a little bit before ive got the health meter part (not entirely sure what the layers mean) im thinking of putting a sort of level up function and im basing it off of an educated guess that this would work
if(score=*put amount here*){
health=+*bigger health amount here*
}
or the same thing but without the + and just put a higher amount does anyone know if that would work? and for the layers, the "bar" layer, will that need to be an exported movie clip as well as the compiled thing?
instead of adding the update score as part of the explosion part of the enemy ship class, why not put it as part of the EXPLOSION class itself? wouldnt that look tidier?
nvm I got it to work so well if I kill 1 enemy I get infinite points (NaN)
btw; this is sarcasm, what im really thinking is "I will find a way to make computers feel pain and them torture them!!!"
hey where does the function updateScore(points)
{
score += points;
_root.scoreText.text = score;
} go? it doesnt say and the place I put it doesnt work for some reason
here is a way I found for the code to make it even better, the background will go faster if you go foreward, and will go slower if you go backward
class Background extends MovieClip
{
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x - 3;
}
if( Key.isDown(Key.LEFT) )
{
_x = _x + 1;
}
_x = _x - 2;
}
}
by the way this is not including the loop code
short and most levels have a simpler alternate that you can accidently bump into or like me, realize "hey the game could have not noticed that... lets exploit it B)
try and keep my comment alive for others who are wondering. MJ- Destroy the grave in Jamaica (Mexico) Tank - Kill him in Qandahar (Middle East) Boomer Santa- Kill Santa in Nuunok (Greenland) Col.Sanders - Kill him in Kentucky (America) Ronald McDonald - Kill him in London (Europe)[also found in multiple other places] Venom - Kill Spiderman in New York (America)