# How do I create a side scroller platform game?

**URL:** https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256
**Category:** flash
**Created:** [May 25, 2008, 3:27am UTC](https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256 "2008-05-25T03:27:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ScoobyDooobyD00](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@ScoobyDooobyD00](https://forum.kirupa.com/u/ScoobyDooobyD00)
#### Post date: [May 25, 2008, 3:27am UTC](https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256/1 "2008-05-25T03:27:30Z")

</div>

Hi, I’ve been searching online now to find a tutorial on how to create a game like this

[http://pouetpu.pbwiki.com/Smf\_640X480](http://pouetpu.pbwiki.com/Smf_640X480)

I don’t have a lot of experience with action script I’ve only used flash for animations. I found 1 tutorial that was useful but it only gave code and text with out a .fla or images. If you could tell me what I need to do to accomplish this and where to put code ect. I would Greatly appreciate it.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![chris12295](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chris12295/32/43_2.png) [@chris12295](https://forum.kirupa.com/u/chris12295)
#### Post date: [May 25, 2008, 5:16am UTC](https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256/2 "2008-05-25T05:16:55Z")

</div>

A general answer would be to make classes for the parts of the game like the player, baddies, map, coins, powerups, etc. Give them the functionality they require and assemble them in a document class.

---

<div class="post-metadata">

### Author: ![ScoobyDooobyD00](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@ScoobyDooobyD00](https://forum.kirupa.com/u/ScoobyDooobyD00)
#### Post date: [May 25, 2008, 12:49pm UTC](https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256/3 "2008-05-25T12:49:45Z")

</div>

Thank you for the reply but I don’t know how to make a class, could you please give me a quick example.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![chris12295](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chris12295/32/43_2.png) [@chris12295](https://forum.kirupa.com/u/chris12295)
#### Post date: [May 25, 2008, 4:54pm UTC](https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256/4 "2008-05-25T16:54:11Z")

</div>

If you really want to make a game in Flash, I highly suggest reading some of the books on Actionscript 3.0. To make a class in Actionscript you would do something like this:

package games.sidescroller.myGame {

class Player {

private var coins:Number;

public function Player() {

//initialize player  
coins = 0;

}

//other functions  
…

} //end class

}//end package

---

<div class="post-metadata">

### Author: ![Noahdecoco](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Noahdecoco](https://forum.kirupa.com/u/Noahdecoco)
#### Post date: [May 25, 2008, 5:34pm UTC](https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256/5 "2008-05-25T17:34:43Z")

</div>

If your new to flash, I suggest that you start of with much simpler games than that… I’ve got two years of experience with actionscript and I tell you, it’s not as easy as it looks… But I can give you an example of a really simple game like this…

Its not best way to make a sidescroller game, but its good if you want to make a single level just for fun or as a school project… to make a sidescroller game, you need to make a level editer, know advanced actionscript, classes, packages, functions… the whole deal… ofcourse, if you love flash and actionscript, you’ll be able to do all this with practice and persistence… blah blah blah blah blah… enough talk… here’s the example…

Oh yeah, this fla isn’t made by me so all credits go to Nathan Stockton

---

<div class="post-metadata">

### Author: ![cjawcrusher512](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@cjawcrusher512](https://forum.kirupa.com/u/cjawcrusher512)
#### Post date: [May 26, 2008, 3:09am UTC](https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256/6 "2008-05-26T03:09:08Z")

</div>

[color=#282827]I agree with you !I support you .[/color]

---

<div class="post-metadata">

### Author: ![gggmork](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@gggmork](https://forum.kirupa.com/u/gggmork)
#### Post date: [May 26, 2008, 1:03pm UTC](https://forum.kirupa.com/t/how-do-i-create-a-side-scroller-platform-game/261256/7 "2008-05-26T13:03:43Z")

</div>

Actionscript 3 Game Programming University was the most useful book for me, but I’m still mostly lost. It had a very simple/basic sidescroller example in it.
