# Side-scrolling platformer template

**URL:** <https://forum.makecode.com/t/side-scrolling-platformer-template/4292>\
**Category:** Game Design\
**Created:** [November 5, 2020, 11:08pm UTC](https://forum.makecode.com/t/side-scrolling-platformer-template/4292 "2020-11-05T23:08:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [November 5, 2020, 11:08pm UTC](https://forum.makecode.com/t/side-scrolling-platformer-template/4292/1 "2020-11-05T23:08:09Z")

</div>

I just wanted to share with you my template for creating a side-scrolling platform game.

It has the typical movement animations you would expect when moving left & right (thanks to the extension ‘riknoll/character-animations’ from @richard). I also set an image when jumping and facing left or right, and another image when ‘not moving’.

I use the camera a little different than what most games do. Normally the player is set to move the camera. In this case the player is always centered in the middle of the screen, and also when the player jumps higher than the center of the screen, the screen scrolls up and down.

In this game, I set a sprite (the little red square) to appear just in front of the player. That square is used to move the camera. So when the player jumps, the screen does not scroll. When you place the camera to be above the player, the player moves to the center of the screen again. If you want the player to stay fixed towards the left of the screen, just place the camera a little further away.

> **[Rygary](https://arcade.makecode.com/46860-70613-30039-00001)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

For those interested in the extensions that I used:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/87bd05324b3f5b514ea85159b8842b64910f1df7.png)

I had also installed the ‘tilemaps’ extension, but didn’t use it. In this example I used the ‘color-coded-tilemap’ instead. Use whichever tilemap extension you feel comfortable with.

I hope others might be able to use this as a way to get started in their own game development. 👍

---

<div class="post-metadata">

**Author:** ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)\
**Post date:** [January 7, 2021, 11:35pm UTC](https://forum.makecode.com/t/side-scrolling-platformer-template/4292/2 "2021-01-07T23:35:40Z")

</div>

can i use your template to make a platformer

---

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [January 8, 2021, 8:27pm UTC](https://forum.makecode.com/t/side-scrolling-platformer-template/4292/3 "2021-01-08T20:27:16Z")

</div>

By all means, please use as much or as little code as you like. I have posted this as an example so that others might be inspired to make their own game. I look forward to seeing what you might make, and feel free to ask any questions you might have.

---

<div class="post-metadata">

**Author:** ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)\
**Post date:** [January 8, 2021, 8:30pm UTC](https://forum.makecode.com/t/side-scrolling-platformer-template/4292/4 "2021-01-08T20:30:10Z")

</div>

tnx 😄 😄
