Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
gotoAndPlay(?) hitTest
Author: MoKkAn
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 :(
| » Level Intermediate |
|
|
Added: : 2004-10-07
Rating: 5.07 Votes: 15
Hits: 216
|
| » 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.
|
|
|