# Help and Questions

**URL:** https://forum.makecode.com/t/help-and-questions/1335
**Category:** Help
**Created:** [March 5, 2020, 10:48pm UTC](https://forum.makecode.com/t/help-and-questions/1335 "2020-03-05T22:48:55Z")
**Posts on this page:** 20
**Page:** 6

<div class="post-metadata">

### Author: ![unknown\_Ink1](https://avatars.discourse-cdn.com/v4/letter/u/8797f3/32.png) [@unknown\_Ink1](https://forum.makecode.com/u/unknown_Ink1)
#### Post date: [February 15, 2024, 12:57am UTC](https://forum.makecode.com/t/help-and-questions/1335/109 "2024-02-15T00:57:51Z")

</div>

I only want them to clip through certain walls.

---

<div class="post-metadata">

### Author: ![unknown\_Ink1](https://avatars.discourse-cdn.com/v4/letter/u/8797f3/32.png) [@unknown\_Ink1](https://forum.makecode.com/u/unknown_Ink1)
#### Post date: [February 15, 2024, 6:11pm UTC](https://forum.makecode.com/t/help-and-questions/1335/110 "2024-02-15T18:11:01Z")

</div>

@richard

---

<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 16, 2024, 5:07pm UTC](https://forum.makecode.com/t/help-and-questions/1335/111 "2024-02-16T17:07:40Z")

</div>

@unknown_Ink1 hmmmm… we don’t really support that if you only want to allow certain kinds of sprites through.

if you want to allow any sprite through, just don’t mark that tile as a wall

---

<div class="post-metadata">

### Author: ![unknown\_Ink1](https://avatars.discourse-cdn.com/v4/letter/u/8797f3/32.png) [@unknown\_Ink1](https://forum.makecode.com/u/unknown_Ink1)
#### Post date: [February 16, 2024, 7:11pm UTC](https://forum.makecode.com/t/help-and-questions/1335/112 "2024-02-16T19:11:42Z")

</div>

@richard I mean in raycasting.

---

<div class="post-metadata">

### Author: ![unknown\_Ink1](https://avatars.discourse-cdn.com/v4/letter/u/8797f3/32.png) [@unknown\_Ink1](https://forum.makecode.com/u/unknown_Ink1)
#### Post date: [February 22, 2024, 5:43pm UTC](https://forum.makecode.com/t/help-and-questions/1335/113 "2024-02-22T17:43:39Z")

</div>

@richard

---

<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 22, 2024, 5:55pm UTC](https://forum.makecode.com/t/help-and-questions/1335/114 "2024-02-22T17:55:04Z")

</div>

@unknown_Ink1 the physics engine in raycasting is the same as the non-raycasting engine AFAIK

---

<div class="post-metadata">

### Author: ![Bety](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bety](https://forum.makecode.com/u/Bety)
#### Post date: [April 5, 2024, 11:07pm UTC](https://forum.makecode.com/t/help-and-questions/1335/115 "2024-04-05T23:07:32Z")

</div>

Hello,

I need help with setting up a “win” when all items are collected in the array and the countdown timer has not run out. My code isn’t working.

> **[Wonka Clicker](https://arcade.makecode.com/S83282-75006-99776-53842)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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: [April 5, 2024, 11:16pm UTC](https://forum.makecode.com/t/help-and-questions/1335/116 "2024-04-05T23:16:43Z")

</div>

@Bety I assume you’re referring to this bit of code:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/4c92b52e5c7b832ed2d1368533645ba21ff3656e.png)

That code is only being called once at the beginning of the level, so it will always evaluate to false. You probably want to check it every frame instead, so if you take that code and put it inside of an “on game update” you should be good!

---

<div class="post-metadata">

### Author: ![Bety](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bety](https://forum.makecode.com/u/Bety)
#### Post date: [April 6, 2024, 3:05am UTC](https://forum.makecode.com/t/help-and-questions/1335/117 "2024-04-06T03:05:11Z")

</div>

Yes, I placed into an “on game update” but still isn’t working…

---

<div class="post-metadata">

### Author: ![Bety](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bety](https://forum.makecode.com/u/Bety)
#### Post date: [April 7, 2024, 11:00pm UTC](https://forum.makecode.com/t/help-and-questions/1335/118 "2024-04-07T23:00:23Z")

</div>

OK I fixed that part and it worked. I had to move the set count block too:). Now I’ve added an enemy to my game but when they spawn and are obstructed by walls the inflict more damage and faster than the ones that are free to roam. How can I fix that? I tried the code that is greyed out but that didn’t work.

 ![Screenshot_7-4-2024_113238_arcade.makecode.com](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/34c3abd9190ada392dde104ad8dfab8a4f0e5420.jpeg)

---

<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: [April 8, 2024, 4:36pm UTC](https://forum.makecode.com/t/help-and-questions/1335/119 "2024-04-08T16:36:24Z")

</div>

@Bety inside your overlap event, use the “otherSprite” variable from the event instead of the “myEnemy” variable. you can drag otherSprite out of the top of the event block

myEnemy always points to the last enemy spawned. otherSprite, on the other hand, will point to the enemy that is involved in the overlap event.

---

<div class="post-metadata">

### Author: ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)
#### Post date: [April 10, 2024, 9:49pm UTC](https://forum.makecode.com/t/help-and-questions/1335/120 "2024-04-10T21:49:14Z")

</div>

@richard I’m coding a game and I am using seeds to create, but I need to be able to draw rectangles in the tilemap, but I noticed I can’t do that for some reason can you think of any way to use the “fill rectangle” block from the “images” Category? Thank you for your time!

---

<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: [April 10, 2024, 9:54pm UTC](https://forum.makecode.com/t/help-and-questions/1335/121 "2024-04-10T21:54:53Z")

</div>

@SOCKMONSTER12 do you mean you want fill a rectangle of tiles? Like this?

> **[fill-tile-rectangle](https://arcade.makecode.com/S69851-96219-31459-72316)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Press A to fill a rectangle of tiles

---

<div class="post-metadata">

### Author: ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)
#### Post date: [April 11, 2024, 4:52pm UTC](https://forum.makecode.com/t/help-and-questions/1335/122 "2024-04-11T16:52:14Z")

</div>

Thanks!!!

---

<div class="post-metadata">

### Author: ![mcodez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mcodez/32/30743_2.png) [@mcodez](https://forum.makecode.com/u/mcodez)
#### Post date: [April 17, 2024, 12:41am UTC](https://forum.makecode.com/t/help-and-questions/1335/123 "2024-04-17T00:41:10Z")

</div>

hey how do i add custom game overs and wins?

> **[jump Its the only thing you can do](https://arcade.makecode.com/S55615-43907-10350-75741)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![foxrii](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@foxrii](https://forum.makecode.com/u/foxrii)
#### Post date: [April 22, 2024, 11:20pm UTC](https://forum.makecode.com/t/help-and-questions/1335/124 "2024-04-22T23:20:47Z")

</div>

Is there any way to use Raycasting for one level only and normal tilemap/regular gameplay for all of the other levels?

---

<div class="post-metadata">

### Author: ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)
#### Post date: [May 23, 2024, 4:54pm UTC](https://forum.makecode.com/t/help-and-questions/1335/125 "2024-05-23T16:54:01Z")

</div>

TextSprite, Background images, etc

---

<div class="post-metadata">

### Author: ![Mr\_Duck](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr_duck/32/13442_2.png) [@Mr\_Duck](https://forum.makecode.com/u/Mr_Duck)
#### Post date: [June 19, 2024, 9:18pm UTC](https://forum.makecode.com/t/help-and-questions/1335/126 "2024-06-19T21:18:57Z")

</div>

@richard Are you able to make it so that the hearts are over the black

---

<div class="post-metadata">

### Author: ![Mr\_Duck](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr_duck/32/13442_2.png) [@Mr\_Duck](https://forum.makecode.com/u/Mr_Duck)
#### Post date: [June 19, 2024, 9:20pm UTC](https://forum.makecode.com/t/help-and-questions/1335/127 "2024-06-19T21:20:29Z")

</div>

![arcade-Backrooms-2D (5)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/ed15481b826d2776af3d3fa544d5e1dcfa772fff.png)

---

<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 19, 2024, 9:22pm UTC](https://forum.makecode.com/t/help-and-questions/1335/128 "2024-06-19T21:22:58Z")

</div>

@Mr_Duck set the z index of the shadowcasting to be less than 100. It’s the last block in that category.

All of the UI from the info category is drawn at z-index 100, so anything lower than that will show up underneath

[Previous page](https://forum.makecode.com/t/help-and-questions/1335.md?page=5)

[Next page](https://forum.makecode.com/t/help-and-questions/1335.md?page=7)
