Search tutorials
ITEMS
Now from what i know you can only make a few items....more life, 1 point coins, and 5 point coins....you can make different coin values if you want!
-new layer called "items"
-now if you play any good game you will find items in them....so make a new Movieclip with an instance name of "heart"
-in this movie clip, draw a heart
-make another with a small brown circle, call its instance "penny"
-make a bigger circle colored gold, with an instance of "dollar"
-now give this script to the "heart":
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.dude)) {
_root.life += 100;
}
}
-give this to "penny":
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.dude)) {
_root.score += 1;
}
}
-give this to "dollar":
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.dude)) {
_root.score += 5;
}
}
-put the items around your maze where you want them
| » Level Intermediate |
|
Added: 2005-11-30 Rating: 5.72 Votes: 18 |
| » Author |
| This is my first tutorial. If i make more, they shall be even better. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!