00:00
00:00
Newgrounds Background Image Theme

Datboi32123 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Reviews for "- FlashGame Source -"

I loved it but one question

ok well i read through it all(or most of it) and if you are going to makea nother tut could you make a part on how to make it so that when you run into an object if goes to a diffrent screen because im trying to make a rpg but i cant figure out how to make it so that once you hit the monster that it goes to a turned base battle system on a diffrent fame because i had it so that you just click on the monster but that a little stuped your have way across the screnn and you some how with a click are in a battle lol kinda stupied so if you makea nother one or know of any tuts like that that would be a big help thank you loved the tut

Flabagasting!

Excellent tutorial! I love it. Haven't yet had a read through everything but a lot of what's in there will definately help me with a game I'm supposed to be making.
Thankyou very much for releasing this game now, when I really do need it. Any earlier and I would have dismissed it and never seen it again. But now that it's set to my homepage, I won't forget about it.
This will be very useful to me over the next few months.

Very Helpful

I have to say, this tutorial has helped me more than any other tutorial on Newgrounds, personally, I love the fact that theres no copy+pasting, it really does help, I just look through your codes for the games and figure out how to do things I didn't know, and stuff like that. Awesome awesome tutorial, I look forward to more from you.

Good.

I like this tutorial, it seems simpler then the other ones, user friendly. Love Daft Punk. You get 8. I get this on my favs.

pretty good

good... but very very cruel.

spd = 7;
jump = true
yspd = 0;
xscale = dude._xscale;
onEnterFrame = function (){
if (Key.isDown(Key.RIGHT)){
dude._xscale = xscale;
if (!ground.hitTest(dude._x+spd+_
x.dude._y+_y-15, true) &&
!ground.hitTest(dude._x+spd+_x , dude._y+_y-dude._height, true)){
dude._x += spd;
if(dude.x>_x-150){
dude._x = _x-150;
ground._x -=spd;
gspd = -spd;
} else {
gspd = 0;
}
if (!Jump && yspd<=0){
walk = true;
}
} else if (Key.isDown(Key.LEFT)){
dude._xscale = -xscale;
if (!ground.hitTest(dude._x+_x-sp d,dude._y+_y-15, true) &&
!ground. hitTest(dude._x+_x-spd, dude._y+_y-dude._height, true)){
dude._x -= spd;
if(dude._x<_x-Stage.width){
dude._x -= spd;
ground._x += spd;
gspd = spd;
}}else{
gspd = 0;
}
}else{
gspd = 0;
}
if (!jump && yspd<=0){
walk = true;
}
}else{
gspd = 0;
walk = false;
}
if(walk){
dude.gotoAndStop[2];
}else if (yspd>0){
dude.gotoAndStop[3];
}else{
dude.gotoAndStop[1];
}
if(Key.isDown(Key.UP)&&!jump){
walk = false;
jump = true;
yspd = 13;
}
if(jump){
yspd--;
if(yspd<=-20){
yspd = -20;
}
dude._y-= yspd;
}else{
yspd = 0;
}
if(!jump){
while (ground.hitTest(dude._x+_x, dude._y+_y-1, true)){
dude._y--;
}
}
if(ground.hitTest(dude._x+_x, dude._y+y, true)){
while(ground.hitTest(dude._x+_
x, dude._y+_y-1, true)){
dude._y -= 1;
}
jump = false;
}else{
jump = true;
}
if(ground.hitTest(dude._x+_x, dude._y+_y-dude._height, true&&jump
&&yspd>0)){
yspd = 0;
}
};
for(i=0; i<3; i++){
duplicateMovieClip(enemy, "e_"+1,1*100);
_root.scroll1["e_"+i]._x = random(Stage.width);
_root.scroll1["e_"+i]._y = 100;
_root.scroll1["e_"+i].spd = (spd/4)+random(4);
_root.scroll1["e_"+i].xscale = _root.scroll1["e_"+i]._xscale;
_root.scroll1["e_"+1].jump = true;
_root.scroll1["e_"+i].onEnterF rame = function(){
this._x +=gspd;
if(dude._x<this._x-5){
this._xscale = -this.xscale;
if(!ground.hitTest(this._x+_x-
this.spd, this._y+_y-15,true)){
this._x -= this.spd;
}
}else if(dude._x>this._x+5){
this._xscale = this.xscale;
if(!ground.hitTest(this._x+_x+
this.spd, this._y+_y-15, true)){
this._x += this.spd;
}
}
if(this.jump){
this.yspd--;
if(this.yspd<=-20){
this.yspd = -20;
}
this._y -= this.yspd;
}else{
this.yspd = 0;
}
if(ground.hitTest(this._x+_x, this._y+_y, true)){
dude._y -= 1;
}
this.jump = false;
}else{
this.jump = true;
}
if(this.hitTest(dude._x+_x, dude._y+_y+this._height,true)&
&
dude.hitTest(this._x+_x, this._y+_y-this._height,true)&
&yspd<0&&
this._currentframe != 2){
this.gotoAndStop(2);
yspd = 8;
}
};

theres the actionscript for the platformer seen as i took like 40 mins writin it and i dont want anyone else to go through it aswell