Ok it seems your going to need to make sure this is on an enterFrame
stop();
onEnterFrame = function ()
{ if (points > 3); { trace ('win') }
}
By not putting it in an enterFrame event your only check if points > 3 once(when the frame loads) by putting it in an enterFrame event your checking all the time.
i dont get it in the first frame i put
var manSpeed = 4;
then for my character the actionscript is all correct but when i take this
this._x += 4;
and replace the 4 with manSpeed it doesn't do anything how would i get it to accept variables that i set?
crazedJSLive 8 months ago
Ok it seems your going to need to make sure this is on an enterFrame
stop();
onEnterFrame = function ()
{ if (points > 3); { trace ('win') }
}
By not putting it in an enterFrame event your only check if points > 3 once(when the frame loads) by putting it in an enterFrame event your checking all the time.
sasuke2910 1 year ago
i need a point system and when i try this it always says win
stop();
if (points > 3);
{ trace ('win')
}
billkinz1998 1 year ago
what happens if you /=0? since you can't divide by 0
snunicycler 1 year ago
@snunicycler
a /= 0;
If 'a' is greater then 0, then it will be 'Infinity'
If 'a' is less then 0, then it will be '-Infinity' (negative Infinity)
If 'a' is 0, then it will be 'NaN' (Not a number)
If you try to use 'Infinity' or '-Infinity' in an equation it will act like 0.
This answer you question?
Ya could of just traced this stuff ya know. XD
sasuke2910 1 year ago
thanx ^__^
kotomimaya 1 year ago
Uhhhhhh.... O.O ? my brain broke
kotomimaya 1 year ago
@kotomimaya If you need something explained better I'd be happy to do it.
sasuke2910 1 year ago
how can I draw the variable on the screen?
lorenzog4545 1 year ago
@lorenzog4545 You can't... You can set them to display in a textbox on the stage if that's what you mean. Or do you mean that trace thing?
sasuke2910 1 year ago