Help me make Mario like game

kool!! :slight_smile:

blah i cannot make it small enough

i dont get any score while taking a coin…why ?

“unexpected file format” blah heres the code to coin:


onClipEvent (load) {
	 this.stop();
}
onClipEvent (enterFrame) {
	 if (this.hitTest(_root.mario)) {
		 this.gotoAndStop(2);
		 _root.score +=100;
	 }
} 

and this to the first frame of main stage:


_root.score = 0; 
numCoin = 2;
//this determines the ammount of coins placed on the screen, 2, being the number we use//
for (i=2; i<=numCoin; i++) {
	 coin.duplicateMovieClip("coin1"+i, i+100);
	 //now, this will duplicate the coin and name it//
	 _root["coin1"+i]._x =330 //wherever you wish to set his Y position//
	 _root["coin1"+i]._y =113 //wherever you wish to set his X position//
} 

Hey guys, sorry I wasnt here to answer your questions, My internet went stupid on me :sleep: .

here it is, If you need more help, please ask. By the way, you dont suck at it, you are new to this type of game, so dont feel bad (I was worse, it took me 2 years to figure it out @_@).

Hmmm, try grouping them into one symbol and name it “ground”, once you have done this, select mario, open his actions panel, and type the following for the side (wall) collision:


onClipEvent (enterFrame) {
	 if (_root.ground.hitTest(getBounds(_root).xMax, _y, true)) {
		 _x -= xspeed;
	 }
	 if (_root.ground.hitTest(getBounds(_root).xMin, _y, true)) {
		 _x += xspeed;
	 }
} 

and that should do it for the walls. As for the goomba, I am going to need your fla to know how far you are, that way I can modify the goomba code.

Nwm It works now. Thanks for everything dude :slight_smile:

ty it works now! is there gonna be a scrolling part to?

i have some backgrounds from some mario games is it possible to use them as ground?

Yup :)!

Let me see them.

P.S. If you need sprites, I can give you a link to some sprite sites.

here

yeah, those are usable, mostly all sprites are usable in flash games.

Hey joman could put up that link to some sprite sites? Or is that illegal?

I think you can do that :).

hey im making a mario game too lol but umm im kinda stuck see im making it as a tile based game. The thing is i dunno how to make it scroll … i just need it to scroll side to side not up and down as i wont be building anything tall in the game. I pretty much want the usual scroll were the character is kept in the middle of the centered in the screen and the rest scroll with it as it goes … i have gotten a few tutorials on scrolling ( ex: http://www.tonypa.pri.ee/tbw/tut14.html ) but when i tried to apply them to the game … it kinda got messed up cuz the example fla and script on that tutorial it got all weird and the jump physics stoped working and stuff … so does anybody know what to do ?

yea mario is the red square lol i started the game from a example fla from a tutorial and havent updated the mario image.

I wish I could help you, but I dont know tile based :(. If anyone knows tile based, its TonyPa (as you have posted).

yea hes the one that recommended me tile based for this kinda game and it seems to be working good for it and all but i dont know tile base lol so its taking me forever i get stuck like every 5 minutes working on it.

I think you can do that :).
Hey joMan what do u mean? Rn’t u the one with the link? This is a good thread, hey LazyBoi105 u post in actionscript.org as well don’t u?