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

Flash: Make a Platform Racing Game PART 2

Loading...

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

Uploaded by on Aug 14, 2009

CODE:
on the arrow movie clip:

onClipEvent(enterFrame){
if(_root.char.hitTest(this)){
this.gotoAndStop(2);
}else{
this.gotoAndStop(1);
}
}

inside the arrow movie clip in the boxes:

onClipEvent(enterFrame){
if(_root.char.hitTest(this)){
_root.char._x-=4
}
if(_root.char.hitTest(this) && (Key.isDown(Key.UP))){
_root.char._y-=10
}
}//this goes in the left one. for the right one, just change the _root.char._x-=4 into +=4

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • What is the code for the Disappearing Block, the ? block, the finish line, and the connection code?

  • Can you add a Download Link so we can Refer to a Example?

    Like a .FLA download; Thanks your tutorials are nice also!

  • Looks nice. Just don't know how to make an enemy. Tutorial on how to?

  • @gamemak0r Mine too

  • is the platform game done?

  • Thanks Pivoty! Your The Best At Making Tutorials! Keep It Up With The Good Work!

    I Would Really Like It If You Made Tutorials For Your Super Mash Bro ( link )

    Game.

    Thanks!

  • for some reason my char goes right through the up arrow block why is this

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