Be a Supporter!

Mathematical Equation Code?

  • 372 Views
  • 7 Replies
New Topic Respond to this Topic
daytonj
daytonj
  • Member since: Jan. 9, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Mathematical Equation Code? 2009-12-14 19:23:26 Reply

Hey I was wondering if someone could help me with my code...

I need it to go to a frame once the var equals zero forgot how to type it lol
if ( _root.vcam.lives < 0???

Thx


My KKK name is Imperial Warrior

svsaproductions
svsaproductions
  • Member since: Nov. 15, 2008
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to Mathematical Equation Code? 2009-12-14 19:28:03 Reply

At 12/14/09 07:23 PM, daytonj wrote: Hey I was wondering if someone could help me with my code...

I need it to go to a frame once the var equals zero forgot how to type it lol
if ( _root.vcam.lives < 0???

Thx

if (_root.vcam.lives < 0) { gotoAndPlay("yourframe"); }

-SVSA


me.addEventListener(Event.Whenever_
You_Move, function (e:Event):void { gotoAndSay("WTF?") } );
On. actionComplete(run);

BBS Signature
zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Mathematical Equation Code? 2009-12-14 19:30:22 Reply

you might also want to pay a visit to the basics section of this...


School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
daytonj
daytonj
  • Member since: Jan. 9, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Mathematical Equation Code? 2009-12-14 19:33:03 Reply

ok thats what i thought thanks just forgot how to type the "greater than or"


My KKK name is Imperial Warrior

Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to Mathematical Equation Code? 2009-12-14 19:38:41 Reply

At 12/14/09 07:33 PM, daytonj wrote: ok thats what i thought thanks just forgot how to type the "greater than or"

You know, there's this new thing called Google for simple things like this.

daytonj
daytonj
  • Member since: Jan. 9, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Mathematical Equation Code? 2009-12-14 19:56:45 Reply

i just realized i had it right anyway...
one more simple question i don't know how to make sure that on a FRAME to make an on event handler


My KKK name is Imperial Warrior

daytonj
daytonj
  • Member since: Jan. 9, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Mathematical Equation Code? 2009-12-14 21:02:37 Reply

At 12/14/09 07:38 PM, Archon68 wrote:
At 12/14/09 07:33 PM, daytonj wrote: ok thats what i thought thanks just forgot how to type the "greater than or"
You know, there's this new thing called Google for simple things like this.

I tried this jackass just to hard to specify what i want

:P.S BUMP


My KKK name is Imperial Warrior

daytonj
daytonj
  • Member since: Jan. 9, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Mathematical Equation Code? 2009-12-14 21:29:29 Reply

onEnterFrame = function()

figured it out!


My KKK name is Imperial Warrior