Added: 2 years ago
From: roojames
Views: 6,546
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (9)

Sign In or Sign Up now to post a comment!
  • Awesome vid, it would have helped me a lot if I didn't already know it :)

    But seriously, when i was trying to find out how to do this stuff, I scoured the internet for ages without finding anything that actually explained what it all did. And when I did work it out, I used the variables method that dakon11 mentioned, but this ways much easier.

  • you can write this to:

    onClipEvent(load){

    speed=10;

    }

    onClipEvent(enterFrame){

    if(key.isDown(Key.Right))

    _x+=speed;

    }

  • Just keep in mind that this is the extreme basics here, so I chose not to cover variables right away

  • It says I have an syntax error..

    Heres my code

    onClipEvent(enterFrame){

    if (Key.isDown(Key.LEFT)) {

    this._x -= 10;

    }

    }

  • Try removing the spaces. The one between "if" and the bracket is where I think the problem is.

  • Ok, this is the tried and true working code:

    onClipEvent(enterFrame){

    if(Key.isDown(Key.LEFT)){

    this._x-=10;

    }

    }

  • Really nice tutorial. Helped me alot. Speaking alot helps understand it more.

    I laughed at "random semi colon here, god knows why"

  • LOL! yOU END UP.... YOU KNOW, CRYING LOL!!!

  • wow your tutorial is awesome

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