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

Adobe flash cs4 Game tutorial : Jumping

Loading...

Sign in or sign up now!
16,036
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 22, 2009

Learn how to make your character jump in adobe flash cs4 using action script 3.

get key class:
http://www.senocular.com
my site:
http://onenterflash.blogspot.com

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (oppcell)

  • Hey, i have a problem, i set everything up and this is my code for when your jumping to show the jump frame, but i get errors. i will put the code first, then the two errors.

    if(hero.y>0) && canjump=true{

    hero.gotoAndStop('jumping');

    }

    1084: Syntax error: expecting identifier before logicaland.

    1008: Attribute is invalid.

    both of the errors are for the line

    if(hero.y>0) && canjump=true{

    please help. thanks!

  • come on take a real look. You're getting syntax errors.

    if(hero.y>0) && canjump=true | is wrong

    canjump=true | is wrong, it is ==

    if((hero.y>0) && canjump){} | is right

  • Would this work on AS2? And by the way, what is the meaning of dynamic y??

  • yes it would. A few changes would need to be made.

  • If I wanted my character to have a different pose when it jumps would I just do the same painstaking thing you did in the last tutorial?

  • Yeah you would write something like

    if (canjump == true){ gotoandstop("jumping");

    }

    you would have to modify the rest of the code for walking not super hard.

see all

All Comments (49)

Sign In or Sign Up now to post a comment!
  • Hey! can some please help me ?

    im getting error 1120: access of undefined property key.

    if(Key.isDown(Key.UP) && canjump){}

    i dont know what im doing wrong so if some helps ill appreciate :D

  • The sw doesn't work at all.

  • kool

  • how do i get it so when the charactor is jumping it will look like he is jumping. where would i put the

    hero.gotoAndStop ('JUMP') so that while he is jumping it isnt just going through the running animation?

  • Hey, how do i get my sprite to move along with the jump?

  • You have like 3 videos that start out making comments to the effect "If you don't know how to make the character and animate..etc" go to "my last tutorial. :P

    But there is Nothing to indicate a sequence for these tutorials, and going through them manually -- I don't find that one.

  • how come my hero falls through the floor? :(

  • @therogen hmms btw is it true or false? also, where exactly do you put that code?

Loading...

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