# Fnaf camera system

**URL:** <https://forum.makecode.com/t/fnaf-camera-system/28235>\
**Category:** Help\
**Created:** [April 14, 2024, 7:39pm UTC](https://forum.makecode.com/t/fnaf-camera-system/28235 "2024-04-14T19:39:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lilvince](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@Lilvince](https://forum.makecode.com/u/Lilvince)\
**Post date:** [April 14, 2024, 7:39pm UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/1 "2024-04-14T19:39:52Z")

</div>

how would I make a camera system similar to fnaf?

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [April 15, 2024, 5:08am UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/2 "2024-04-15T05:08:38Z")

</div>

What I would do is put sprites in front of one camera. Anything that a character would be behind could be a different sprite that the character would be in between. Just make good use of the set background image block for a much easier way to do it

---

<div class="post-metadata">

**Author:** ![Lilvince](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@Lilvince](https://forum.makecode.com/u/Lilvince)\
**Post date:** [April 15, 2024, 9:09pm UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/3 "2024-04-15T21:09:16Z")

</div>

care to share an example of this?

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [April 16, 2024, 3:44am UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/4 "2024-04-16T03:44:43Z")

</div>

> **[fnaf camera](https://arcade.makecode.com/S96385-80660-51577-29710)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here it is. Any thing behind the animatronic is just painted to the background. Anything in front of it is a sprite that he goes behind.

---

<div class="post-metadata">

**Author:** ![Lilvince](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@Lilvince](https://forum.makecode.com/u/Lilvince)\
**Post date:** [April 16, 2024, 4:59pm UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/5 "2024-04-16T16:59:13Z")

</div>

Ty for the help!

---

<div class="post-metadata">

**Author:** ![soren\_lorenson](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@soren\_lorenson](https://forum.makecode.com/u/soren_lorenson)\
**Post date:** [April 16, 2024, 5:06pm UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/6 "2024-04-16T17:06:22Z")

</div>

try using the raycasting extension

---

<div class="post-metadata">

**Author:** ![Lilvince](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@Lilvince](https://forum.makecode.com/u/Lilvince)\
**Post date:** [April 17, 2024, 6:08pm UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/7 "2024-04-17T18:08:25Z")

</div>

I don’t exactly know how to use the raycasting extension and I would like to learn how it works exactly before using for a project I’ve put a lot of time in like this

---

<div class="post-metadata">

**Author:** ![soren\_lorenson](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@soren\_lorenson](https://forum.makecode.com/u/soren_lorenson)\
**Post date:** [April 18, 2024, 12:51pm UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/10 "2024-04-18T12:51:41Z")

</div>

here you go:

> **[raycasting example](https://arcade.makecode.com/S50784-87335-60241-87099)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Thank me later

---

<div class="post-metadata">

**Author:** ![Lilvince](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@Lilvince](https://forum.makecode.com/u/Lilvince)\
**Post date:** [April 20, 2024, 3:59pm UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/11 "2024-04-20T15:59:04Z")

</div>

not sure how I would use this for cameras??? I mean yeah I get how you can make it so you can ONLY rotate the camera and not move but heres the thing, the raycast extension can cause issues, I know from experience since I have TRIED to use it on a few other projects, they all failed and got corrupted in some way due to the extension, well besides one just simply named walk

---

<div class="post-metadata">

**Author:** ![Lilvince](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@Lilvince](https://forum.makecode.com/u/Lilvince)\
**Post date:** [April 21, 2024, 12:24am UTC](https://forum.makecode.com/t/fnaf-camera-system/28235/12 "2024-04-21T00:24:40Z")

</div>

which I am now working on walk since it’s the only one that didn’t corrupt, i’m also saving every few minutes
