Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Adobe flash cs4 platform game basics : intro

Loading...

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

Uploaded by on Sep 21, 2009

Learn to make platform game using adobe flash cs4 and ActionScript 3. This tutorial will show you the the code used to jump and create solid ground for your character.
http://www.onenterflash.com/2009/09/adobe-flash-cs4-platform-game-basics.html

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 6 dislikes

Link to this comment:

Share to:

Uploader Comments (oppcell)

  • how do you open the actionscript where you paste the code???

  • you can press F9 or window -> actions

Top Comments

  • I haven't been making tutorials for a little while I had a little vacation, I was over at my ladies house and I was in her bed and let me tell ya, you know when your in a bed with a lady you know what happens don't ya...

    I was watching 3 seasons of lost and it was Fantastic!

    After I heard that I just had to subscribe :P,

    Nice tutorial and nice sence of humor!

  • so what is the code for the solid ground?? pls tell me!!! im confused

see all

All Comments (65)

Sign In or Sign Up now to post a comment!
  • thank you so much, that will make me rich

  • You can get much interesting movement if you repleace these lines:

    if(hero.x-20<mouseX){

    hero.x+=5

    }

    if(hero.x+20<mouseX){

    hero.x-=5

    }

    with this:

    var distx:Number = hero.x - mouseX;

    hero.x -= distx / 13;

  • Hey, the simplest jumping logic to follow and it worked for me the very first try! However, I don't understand two little parts in your script:

    so when you set the jumped boolean to true, why do we need to raise the hero's y?

    hero.y -= 5;

    and is 5 just an arbitrary number or does it hold any significance?

    My second question, during your ENTER_FRAME event handler, why do I need that loop that loops 10 times and when the hero hits the floor, why do I need to raise it again? hero.y --; Thanks!

  • Thank you for this, great starting point.

    Now Im off to make some enemies, some levels and bonus stuff.

  • i literally put my mouse arrow thing on top of your mouse arrow thing and it was the same size lol..and good joke in the beginning lol.

  • It didn't work for me.

  • I was able to do it. Im trying to make game apps for Android. A few things, 1 If your character is behind then your registration point is not on the bottom. 2nd i can copy my AS3 code in an email if you want just pm me, 3rd, its, AS3(ActionScript3) so yes it works on CS5. Thats the version I have. Im working on the hit point for walls now, I havent tried it just yet, but copy your X hitpoint script for Y and see if that works. that might give you a "roof" Im a child when it comes to AS3... sorry

  • thank you but it doesnt work

  • how do you make walking character? or hero?

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