# Help me make Mario like game

**URL:** <https://forum.kirupa.com/t/help-me-make-mario-like-game/63819>\
**Category:** programming\
**Created:** [September 10, 2004, 8:13am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819 "2004-09-10T08:13:46Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 11, 2004, 3:51pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/41 "2004-09-11T15:51:35Z")

</div>

> [@FlashNewbi3](#):
>
> That was 4 joMan but ill send my 🙂 But I have different scripts what joMan has

kool!! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 11, 2004, 4:07pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/42 "2004-09-11T16:07:00Z")

</div>

> [@kurez](#):
>
> kool!! 🙂

blah i cannot make it small enough

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 11, 2004, 7:51pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/43 "2004-09-11T19:51:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 11, 2004, 10:12pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/44 "2004-09-11T22:12:50Z")

</div>

> [@kurez](#):
>
> i dont get any score while taking a coin…why ?

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

```php

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:

```php

_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//
} 

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 1:30am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/45 "2004-09-12T01:30:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 1:47am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/46 "2004-09-12T01:47:34Z")

</div>

> [@kurez](#):
>
> i dont get it…:-/ i suck at flash…could you send me yours?

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 @\_@).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 1:52am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/47 "2004-09-12T01:52:46Z")

</div>

> [@FlashNewbi3](#):
>
> Umm could you modify that goomba script. I have leftbound (left wall) rightbound (right wall) and platforms (ground)

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:

```php

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 6:54am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/48 "2004-09-12T06:54:44Z")

</div>

> [@joMan](#):
>
> 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:
> 
> ```php
> 
> 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 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 8:42am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/49 "2004-09-12T08:42:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 8:52am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/50 "2004-09-12T08:52:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 5:30pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/51 "2004-09-12T17:30:20Z")

</div>

> [@kurez](#):
>
> ty it works now! is there gonna be a scrolling part to?

Yup :)!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 5:32pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/52 "2004-09-12T17:32:29Z")

</div>

> [@kurez](#):
>
> i have some backgrounds from some mario games is it possible to use them as ground?

Let me see them.

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 7:19pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/53 "2004-09-12T19:19:26Z")

</div>

> [@joMan](#):
>
> Let me see them.
> 
> P.S. If you need sprites, I can give you a link to some sprite sites.

here

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2004, 10:20pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/54 "2004-09-12T22:20:31Z")

</div>

> [@kurez](#):
>
> here

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 7:08am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/55 "2004-09-13T07:08:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 1:20pm UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/56 "2004-09-13T13:20:56Z")

</div>

> [@Dr Warm](#):
>
> Hey joman could put up that link to some sprite sites? Or is that illegal?

I think you can do that :).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 12:19am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/57 "2004-09-14T00:19:41Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 2:53am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/58 "2004-09-14T02:53:51Z")

</div>

> [@LazyBoi105](#):
>
> 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](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).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 3:20am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/59 "2004-09-14T03:20:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 10:06am UTC](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819/60 "2004-09-14T10:06:04Z")

</div>

> 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](http://actionscript.org) as well don’t u?

[Previous page](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819.md?page=2)

[Next page](https://forum.kirupa.com/t/help-me-make-mario-like-game/63819.md?page=4)
