Search tutorials
That will make him constantly fall unless he hits he platform. You will now find that if you press down he can go past it :( Well, our little stick man had some technical problems and he can no longer go down (Delete the script) so now it looks like Overall:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x = _x-10;
}
if (Key.isDown(Key.UP)) {
_y = _y-15;
}
if (Key.isDown(Key.RIGHT)) {
_x = _x+10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.platform1)) {
_y = _y-10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.platform2)) {
_y = _y-10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.subplat1)) {
_x = _x-10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.subplat1)) {
_x = _x-10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.subplat2)) {
_x = _x+10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.subplat3)) {
_x = _x-10;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.subplat4)) {
_x = _x+10;
}
}
onClipEvent (enterFrame) {
if (hitTest() == false) {
_y = _y+10;
}
}
| » Level Basic |
|
Added: 2005-01-18 Rating: 7 Votes: 8 |
| » Author |
| Show respect to C & T |
| » Download |
| Download the files used in this tutorial. |
| Download (10 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!