How to make a walking / jumping game with Flash CS4 (Part 2/3 - Actionscript)

Loading...

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

Uploaded by on Feb 6, 2010

This three part series will explain how you can create your own Flash Game with CS4, within which a character will be controlled by the arrow keys, and jump with the space key. It will give you an insight into the basics of a more complicated game (Such as a platformer).

The first part deals with the character design + animation, and background design. The second will include all the script. The third will show you how to make a Virtual Camera to follow / scroll with the player as he walks.

This will work with CS5, CS4, CS3, Flash 8, MX 2004. Note that you need to use ActionScript 2.0.

-----------------------------------
Programs:
- Adobe Flash CS4
- Camtasia Studio Pro 6.0
-----------------------------------

Visit my channel for more beginner to intermediate flash tutorials, and subscribe to show your support if you enjoy them. Cheers.

** Script downloads:
Character Movement Script: http://www.mediafire.com/?buzgmdgm2te

  • likes, 4 dislikes

Link to this comment:

Share to:

Uploader Comments (smittyguitarplyr)

  • Does anyone know how to make it so when your character stops moving it goes to the 1st frame of the walk cycle so he not like mid walk stopping all the time. Great tutorial as well btw you earned a sub.

  • @insidethesnake - Check out my reply to ThunderSpam - you should see it above. (:

  • Help, I messed up with the direction of the character and it walks backwards, how do I flip it without it flashing between the backwards picture and the corrected picture

  • @Charlie12292001 - Find the if(Key.isDown(Key.LEFT)) { and if(Key.isDown(Key.RIGHT)) { sections of the code. Under these statements you'll see '_xscale = -scale;' and '_xscale = scale;' respectively. You want to swap the negative (-) symbol in front of 'scale' from one to the other.

see all

All Comments (230)

Sign In or Sign Up now to post a comment!
  • and also, lol do you know of a way to control the jumps so that the longer you hold the button the higher he jumps, and if you barely tap it he doesnt jump as high

  • how do you change the command so that it only jumps once, even if the jump button is held down, because if i hold down the button the character jumps repeatedly

  • how do you make it so it would play a different cycle jumping, or attacking?

  • The music only plays when I press enter. Why?

  • how do i change the jump height?

  • WTF IT WALKS BACKWARDS 

  • i GOT a problem :( : "Scene=Scene 1, layer=char, frame=1, Line 1 Clip events are permitted only for movie clip instances" but my dude is a movie clip!

  • My character is fine until I move at which point it gets completely stretched out

  • How could i make a simple attack like shooting or slashing with a sword?

    And also how could i make platforms for the player to jump on?

  • @PhoneHouseholdHacker make sure its as2

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