# How can I make sonic go upside down without falling

**URL:** <https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456>\
**Category:** Help\
**Created:** [December 21, 2021, 7:17pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456 "2021-12-21T19:17:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [December 21, 2021, 7:17pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/1 "2021-12-21T19:17:58Z")

</div>

> **[sonic](https://arcade.makecode.com/51044-34845-20508-24590)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

some  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d903aebc2193ba1c45902d304f56faf9db268ee6.jpeg)  
and one more thing i had an accident on my way home so i can’t talk to you for a while

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 21, 2021, 11:20pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/2 "2021-12-21T23:20:30Z")

</div>

It’s nice to finally see someone use my old project for something, and it would be complicated to have running from floor to wall to ceiling (although I might be able to do it if I put a few hours into it), but if you just want to have him go upside down, you should have a specific tile for the ceiling and have “If tile to top of mysprite= “ceiling tile” and mysprite vx≠0” then set mysprite AY to -200, else set mysprite AY to 200. I could probably make some ot the mechanics if you want to do a collab, but I’m just not good at level design.

---

<div class="post-metadata">

**Author:** ![thegreatone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreatone/32/5414_2.png) [@thegreatone](https://forum.makecode.com/u/thegreatone)\
**Post date:** [December 22, 2021, 6:00pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/3 "2021-12-22T18:00:54Z")

</div>

If this is based of the Sonic 1/2/3&k/Mania engine then if not angle equals 0 then set ay to 0 else set ay to gravity.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 27, 2021, 7:20pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/4 "2021-12-27T19:20:05Z")

</div>

Update: I’ve made a new update to this demo, and there will also be constant updates too. This one doesn’t allow ceiling running and only physics for running on one side of the wall (the right side), but I’ve made many physics like running and jumping.

> **[SONIC ENGINE: Advanced Physics Engine v0.1](https://arcade.makecode.com/08066-74498-80256-73276)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 27, 2021, 9:05pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/5 "2021-12-27T21:05:57Z")

</div>

Quick bug fix:

> **[SONIC ENGINE: Advanced Physics Engine v0.1.1](https://arcade.makecode.com/08510-31762-29631-59434)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [December 28, 2021, 6:12am UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/6 "2021-12-28T06:12:02Z")

</div>

i am trying todo a loop  
but how

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 28, 2021, 6:12am UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/7 "2021-12-28T06:12:54Z")

</div>

New Update: It’s almost complete, it just needs ramps in the other direction and maybe a world map (also bug fixes)!

> **[SONIC ENGINE: Advanced Physics Engine v0.2](https://arcade.makecode.com/02653-36988-55823-36013)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 28, 2021, 7:32pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/8 "2021-12-28T19:32:26Z")

</div>

Now I finally did it!!! You can’t do loops yet but everything else is done.

> **[SONIC ENGINE: Advanced Physics Engine v0.3](https://arcade.makecode.com/83327-55079-71539-95413)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [December 28, 2021, 7:33pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/9 "2021-12-28T19:33:21Z")

</div>

Wow thanks

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 28, 2021, 9:21pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/10 "2021-12-28T21:21:58Z")

</div>

Now I made it with loops (only going right, but I don’t think there will need to be loops in the left direction):

> **[SONIC ENGINE: Advanced Physics Engine v0.4](https://arcade.makecode.com/78740-01307-74221-81509)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [December 29, 2021, 5:57pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/11 "2021-12-29T17:57:11Z")

</div>

Thanks so much

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 30, 2021, 5:49am UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/12 "2021-12-30T05:49:53Z")

</div>

It’s finally done!!! I was going to name this 0.5, but I think this is deserving of being 1.0 because it is basically complete (but if you want another type of platform or ramp you can still ask for it). This was hard, but extremely fun and I like how this demo came out. I’ve never made physics this polished, with few glitches, and fun to play around with before and it is one of the few games I’ve made that I actually like to play. It has a small testing area that I made and used while coding. I hope you like it. It has a lot of processes going on but still runs over 50fps (with no lag spikes). I tried to make it as similar to the original sonic games as possible. I am always interested in suggestions of bug fixes, new ramps/platforms, and physics changes. Here’s the game:

> **[SONIC ENGINE: Advanced Physics Engine v1.0](https://arcade.makecode.com/89062-77405-79984-51788)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I hope you have as much fun as I do with this physics engine. You can make a game with this, but please credit me.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [January 4, 2022, 10:52pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/13 "2022-01-04T22:52:21Z")

</div>

Late to this thread, but there is a very detailed guide as to how the physics engine works in sonic games here: [http://info.sonicretro.org/Sonic\_Physics\_Guide](http://info.sonicretro.org/Sonic_Physics_Guide)

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [January 5, 2022, 5:39pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/14 "2022-01-05T17:39:07Z")

</div>

Thanks @richard, this is very informational.

---

<div class="post-metadata">

**Author:** ![Taser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/taser/32/29517_2.png) [@Taser](https://forum.makecode.com/u/Taser)\
**Post date:** [January 5, 2022, 5:39pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/15 "2022-01-05T17:39:09Z")

</div>

Are you planning on making levels for this??

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [January 5, 2022, 10:26pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/16 "2022-01-05T22:26:49Z")

</div>

@Taser I probably won’t be making levels for this (although I might use some features of this game in future games). I have a (possibly final?) update for this which makes it so that when you are going up a slope, you go slower, but when you go down a slope, you go faster.

> **[SONIC ENGINE: Advanced Physics Engine v1.1](https://arcade.makecode.com/82732-50628-00217-73364)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

You can make levels, or even a full game out of this if you want, but please credit me if you do. I could probably make more platforms/physics if asked for. I’m just not good at level design so that’s why I just stick to demos usually. There is no location specific code, just tile specific, so if you have the correct tiles placed down for the correct ramps, building levels should be really easy.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [January 26, 2022, 4:52am UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/17 "2022-01-26T04:52:22Z")

</div>

I made a randomizer

> **[SONIC ENGINE: Advanced Physics Engine v1.1 RANDOMIZER v1.0](https://arcade.makecode.com/45209-84584-78092-77695)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 9, 2023, 9:24pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/18 "2023-10-09T21:24:24Z")

</div>

Wow, [smooth like butter](https://www.youtube.com/watch?v=WMweEpGlu_U&t=9s), @Kiwiphoenix364!!!

---

<div class="post-metadata">

**Author:** ![Reflectfr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/reflectfr/32/32515_2.png) [@Reflectfr](https://forum.makecode.com/u/Reflectfr)\
**Post date:** [December 18, 2023, 5:39am UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/19 "2023-12-18T05:39:57Z")

</div>

The og.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [December 18, 2023, 9:15pm UTC](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456/20 "2023-12-18T21:15:28Z")

</div>

Thanks all for your comments! Much appreciated! The slopes are pretty well done, though the parts that get you onto the walls aren’t super well done as they don’t have actual collision. I could probably do better now but this was a proof-of-concept and I’m glad people are enjoying it!

Also just wanted to let people know I am not leaving the forum, just was taking a bit of a break from coding.

[Next page](https://forum.makecode.com/t/how-can-i-make-sonic-go-upside-down-without-falling/11456.md?page=2)
