Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Actionscripting/Basic

Categories gotoAndPlay(?) hitTest
Author: MoKkAn

 
Page 2
«prev 1 2

And then give the stupid "step" these actions!:

onClipEvent (load) {
movespeed = 10;
}
onClipEvent (enterFrame) {
 if (Key.isDown(Key.RIGHT)) {
 _x-= movespeed;
 }
 if (Key.isDown(Key.LEFT)) {
 _x+= movespeed;
 }
 if (Key.isDown(Key.UP)) {
 _y+= movespeed;
 }
 if (Key.isDown(Key.DOWN)) {
 _y-= movespeed;
 }
 }
onClipEvent (enterFrame) {
 if (_parent.man.hitTest (this)) {
 _parent.gotoAndStop(2);
 }
}

And so ends another great tutorial by MoKkAn! Tune in next time for another one, I can't tell you because...I don't know what it is!!!!!!!!!!

P.S.
You can't find this in tutorials on Flash MX :(

«prev 1 2

» Level Intermediate

Added: : 2004-10-07
Rating: 4.72 Votes: 14
Hits: 212
» Author
Pooches Gamin
» Download
Download the files used in this tutorial.
Download (0 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers