Game Tut #1 Movement

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,756
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 5, 2009

Hello everyone, first chapter of my attempt to make you all YouTubers able to build your own game!
Here's the first line of code:
Forgot to say that this is done fully in Actionscript 2.0, Not the new Actionscript 3.0 as I didn't master that one.


onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x = _x-5;
}
if (Key.isDown(Key.UP)) {
_y = _y-5;
}
if (Key.isDown(Key.RIGHT)) {
_x = _x+5;
}
if (Key.isDown(Key.DOWN)) {
_y = _y+5;
}
}

And extra code:

onHittest (Enterframe) {
if You.Hittest._true = Toilet
Play.Scene (Take_a_shit)
}

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (Opblaaskaas)

  • I'm currently trying to pick AC3 up but it sucks pretty bad, I'm building this game fully in AC2.

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • THANKS! ITS AWESOME! MINE WORKED 1st TRY!

  • @rjc0l3 LAWL! ADD stands for attention dephicent disorder

  • " if you want to know what this is, stick around.... i have no idea what this is... this is some, crappy complicated thing..." LOL

  • YOU ARE AWESOME

  • It means that you will have to convert it to a movie clip, you may have forgotten to do it.

  • i get the message :

    current selection cannot have actions applied to it.

    What can i do?

  • really helped

  • Then ADD A {?? dude how simple is that?

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