Age/Gender: 14, Male
Location: Milton, Canada
Job: Student
Don't watch anything I've made.
Newgrounds Stats
Whistle Status: Normal
Exp. Points: 650 / 710
Exp. Rank #: 58,341
Voting Pow.: 5.04 votes
BBS Posts: 8 (0.01 per day)
Flash Reviews: 33
Music Reviews: 2
Trophies: 0
Stickers: 0
Latest Flash Reviews
I like how you added stuff from your other submissions!
- Rate this review:
- Helpful!
- Useless.
- Flag as abusive.
But a lot of problems. I edited the script for the movement and I ended up with this and it works for me:
onClipEvent(load) {
var speed:Number = 10;
var walk:Number = 0;
var grav:Number = 0;
var falling:Number = 0;
var jumped:Boolean = false;
var jumpHeight:Number = 15;
var touchingGround:Boolean = false;
var scale:Number = _xscale;
}
onClipEvent(enterFrame) {
if (!touchingGround) {
grav++;
this._y += grav;
} else {
grav = 0;
}}
onClipEvent(enterFrame) {
if (_root.ground.hitTest(_x,_y,true)) {
touchingGround = true;
} else {
touchingGround = false;
}}
onClipEvent(enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x -= speed;
this.gotoAndStop(2);
_xscale = -scale;
}}
onClipEvent(enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_x += speed;
this.gotoAndStop(2);
_xscale = +scale;
}}
onClipEvent(enterFrame) {
if (jumped) {
falling += 0.5;
_y += falling;
if(touchingGround) {
jumped = false;
}
}else{
if(Key.isDown(Key.UP)){
jumped = true;
falling = -jumpHeight;
this.gotoAndStop(3);
}}
if ((Key.isDown(Key.UP)) and (Key.isDown(Key.LEFT))) {
this.gotoAndStop(3);
}}
onClipEvent(enterFrame) {
if ((Key.isDown(Key.UP)) and (Key.isDown(Key.RIGHT))) {
this.gotoAndStop(3);
}}
onClipEvent(enterFrame) {
if ((!Key.isDown(Key.UP)) and (!touchingGround)) {
this.gotoAndStop(3);
} else if ((Key.isDown(Key.UP)) and (!touchingGround)) {
this.gotoAndStop(3);
}}
onClipEvent(enterFrame) {
if ((_currentframe == 3) and (touchingGround)) {
gotoAndStop(1)
}
}
onClipEvent (keyUp) {
gotoAndStop(1);
- Rate this review:
- Helpful!
- Useless.
- Flag as abusive.
Would've liked a better Movement section though. I was looking for a tutorial that would teach something like 'when you press right, the character does a walking-right animation etc.' tutorial. Other than that, awesome tutorial! :)
- Rate this review:
- Helpful!
- Useless.
- Flag as abusive.
Latest Audio Reviews
2 Reviews | 0 w/ Responses
Fitted perfectly at the end of my movie.
- Rate this review:
- Helpful!
- Useless.
- Flag as abusive.
Very nice job. To me, it sounds like I'd here this in a rave party.
- Rate this review:
- Helpful!
- Useless.
- Flag as abusive.