Added: 1 year ago
From: sasuke2910
Views: 1,359
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (10)

Sign In or Sign Up now to post a comment!
  • 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?

  • 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 need a point system and when i try this it always says win

    stop();

    if (points > 3);

    { trace ('win')

    }

  • what happens if you /=0? since you can't divide by 0

  • @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

  • thanx ^__^

  • Uhhhhhh.... O.O ? my brain broke

  • @kotomimaya If you need something explained better I'd be happy to do it.

  • how can I draw the variable on the screen?

  • @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?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more