# Passable platforms

**URL:** https://forum.makecode.com/t/passable-platforms/5959
**Category:** Help
**Created:** [February 4, 2021, 7:51pm UTC](https://forum.makecode.com/t/passable-platforms/5959 "2021-02-04T19:51:43Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)
#### Post date: [February 4, 2021, 7:51pm UTC](https://forum.makecode.com/t/passable-platforms/5959/1 "2021-02-04T19:51:43Z")

</div>

Any Ideas how to do this?

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 4, 2021, 7:58pm UTC](https://forum.makecode.com/t/passable-platforms/5959/2 "2021-02-04T19:58:11Z")

</div>

I don’t understand what you mean - do want to allow a sprite to move through walls?

---

<div class="post-metadata">

### Author: ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)
#### Post date: [February 4, 2021, 8:12pm UTC](https://forum.makecode.com/t/passable-platforms/5959/3 "2021-02-04T20:12:04Z")

</div>

No. Yes. Well Partially. Only passable from below, but you can’t go down.

---

<div class="post-metadata">

### Author: ![charliegregg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/charliegregg/32/2411_2.png) [@charliegregg](https://forum.makecode.com/u/charliegregg)
#### Post date: [February 5, 2021, 6:49am UTC](https://forum.makecode.com/t/passable-platforms/5959/4 "2021-02-05T06:49:00Z")

</div>

Semi solids?  
if so I haven’t used tilemaps for a while but I believe you can ‘ghost’?  
if the players y \< the tiles

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [February 5, 2021, 6:53am UTC](https://forum.makecode.com/t/passable-platforms/5959/5 "2021-02-05T06:53:07Z")

</div>

Yeah, this seems like the best approach to writing something like this – some combination of `ghost through walls`, `on wall hit`, and comparing the wall you hit’s position vs the player’s to see if it’s above or below. Possibly could also try something along the lines of disabling wall temporarily when the player goes through from the bottom (set wall off at location when hit from bottom) and reenabling it when the player gets above it?

---

<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: [February 7, 2021, 4:51pm UTC](https://forum.makecode.com/t/passable-platforms/5959/6 "2021-02-07T16:51:39Z")

</div>

> [@Agent\_14](#):
>
> No. Yes. Well Partially. Only passable from below, but you can’t go down.

Perhaps you could use something like this.

> **[platform jumper](https://arcade.makecode.com/86434-92370-48110-72719)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

This is not using a tilemap, so there is no concept of walls. The code keeps checking that the player overlaps a platform.

---

<div class="post-metadata">

### Author: ![felixtsu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/felixtsu/32/12024_2.png) [@felixtsu](https://forum.makecode.com/u/felixtsu)
#### Post date: [February 8, 2021, 4:48pm UTC](https://forum.makecode.com/t/passable-platforms/5959/7 "2021-02-08T16:48:42Z")

</div>

Due to events between sprites and tiles/walls are handled in the main thread (of the game engine), require some exts (runLater) or ts code

 ![Screen-Recording-2021-02-08-at-1](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/a531a26eef4947a6587ae175601afa49475ae55e.gif)

> **[Platformer.Demo](https://arcade.makecode.com/38062-43232-08954-91674)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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: [February 8, 2021, 10:05pm UTC](https://forum.makecode.com/t/passable-platforms/5959/8 "2021-02-08T22:05:50Z")

</div>

I have noticed a strange bug. If I have the player jump two, it moves off the screen and does not return. Also if I move under the second platform and jump once it moves up off the screen (maybe because the player is still touching a tile at the top?)

---

<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: [February 9, 2021, 5:32pm UTC](https://forum.makecode.com/t/passable-platforms/5959/9 "2021-02-09T17:32:51Z")

</div>

Here’s the best I could do in blocks:

> **[dropthrough](https://arcade.makecode.com/46990-51880-25555-43247)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

The code is a little complicated, but I added some comments. Also, doesn’t work _great_

---

<div class="post-metadata">

### Author: ![NxNMatrixGL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/nxnmatrixgl/32/2553_2.png) [@NxNMatrixGL](https://forum.makecode.com/u/NxNMatrixGL)
#### Post date: [November 5, 2022, 1:48am UTC](https://forum.makecode.com/t/passable-platforms/5959/10 "2022-11-05T01:48:49Z")

</div>

> [@richard](#):
>
> dropthrough

@richard, perhaps add this feature to the platformer extension? I think it would be a nice one to have.

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [November 6, 2022, 11:34pm UTC](https://forum.makecode.com/t/passable-platforms/5959/11 "2022-11-06T23:34:13Z")

</div>

Hmm, it seems as if it crashes when you collide with a dropthrough platform on the side.

---

<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: [November 7, 2022, 6:06pm UTC](https://forum.makecode.com/t/passable-platforms/5959/12 "2022-11-07T18:06:59Z")

</div>

@NxNMatrixGL i was just talking to @jwunderl about that… I’ll see what I can do!

---

<div class="post-metadata">

### Author: ![NxNMatrixGL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/nxnmatrixgl/32/2553_2.png) [@NxNMatrixGL](https://forum.makecode.com/u/NxNMatrixGL)
#### Post date: [June 9, 2023, 5:20pm UTC](https://forum.makecode.com/t/passable-platforms/5959/13 "2023-06-09T17:20:47Z")

</div>

You’ve done several live streams with enhancing jumps, wall jumping, ect. on a platformer extension. Is the updated code in your GitHub?

---

<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: [June 12, 2023, 6:48pm UTC](https://forum.makecode.com/t/passable-platforms/5959/14 "2023-06-12T18:48:32Z")

</div>

@NxNMatrixGL yes, I think it’s up to date! no dropthrough yet though
