# Side Scroller Mini Project

**URL:** <https://forum.code.org/t/side-scroller-mini-project/34765>\
**Category:** CS Discoveries\
**Created:** [May 25, 2021, 8:33pm UTC](https://forum.code.org/t/side-scroller-mini-project/34765 "2021-05-25T20:33:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![burnsk](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@burnsk](https://forum.code.org/u/burnsk)\
**Post date:** [May 25, 2021, 8:33pm UTC](https://forum.code.org/t/side-scroller-mini-project/34765/1 "2021-05-25T20:33:01Z")

</div>

Hi,  
My student is stuck on their health detection as it is not working properly at this point. Could you take a peek and advise? When the dinosaur touches the fire ball, it should affect the health accurately. There is also a coin glitching out.

Link: [Code.org - Game Lab](https://studio.code.org/projects/gamelab/qiD1DC3t_m8lBNUUJB5e4nhwLm1I8KCV2xSkEL4CT1Q)

---

<div class="post-metadata">

**Author:** ![IMPixel](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/impixel/32/6744_2.png) [@IMPixel](https://forum.code.org/u/IMPixel)\
**Post date:** [May 25, 2021, 11:44pm UTC](https://forum.code.org/t/side-scroller-mini-project/34765/2 "2021-05-25T23:44:29Z")

</div>

When I start debugging Bulbasaur I see that its collider is way too big.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/4/4b7dec7f8525ae05eb5f474c6ef4a1cc8fcd9304.png)  
That’s happening because the sprite takes the width and height from the animation its been set to and the animation “bulbasaur” is way too big.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/2/20ad1392883420b3c70735e53736f5a2397277af.png)  
To fix that you can use the crop tool in Piskel (the sprite animation editor)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/7/7374580403796393b35f7d4eff6db2e40f662cf3.png)  
Just click on that button and it should fix both problems!

Also consider adding noSmooth() at the beginning of your code: it will make the game look better overall as the Bulbasaur is supposed to be pixelated.

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [May 26, 2021, 1:30am UTC](https://forum.code.org/t/side-scroller-mini-project/34765/3 "2021-05-26T01:30:48Z")

</div>

The fireball also should be cropped. That should make the game much more playable!

good luck!

Mike
