# Paper Coneguy! (help/feedback)

**URL:** https://forum.makecode.com/t/paper-coneguy-help-feedback/18238
**Category:** Help
**Tags:** graphics-and-math
**Created:** [March 2, 2023, 7:39pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238 "2023-03-02T19:39:24Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)
#### Post date: [March 2, 2023, 7:39pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/1 "2023-03-02T19:39:24Z")

</div>

(before reading, remember that this relates to Raycastng)  
Update: I’ve made a test area for a game I’d like to make. Thanks so much to @Brohann for locking the camera so that this could actually work.

> **[Paper Coneguy test area](https://arcade.makecode.com/S81523-66615-36048-72307)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

There are 4 things I need help with in order to make this an actual game.

1: Enemies  
Is it possible to make it so that enemies wander around and attack when they “see” (are in a certain vicinity of) the player, like in the Paper Mario games?

2: Stop Sign attack  
Similar to how you can attack with a hammer in Paper Mario games, I’d like to make it so that you can attack with a stop sign instead.

3: NPCs  
Can you make it so that you can talk to NPCs when approaching them? Here’s an image for more context:  
 ![PM_Fice_T_Screenshot](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e64b2421af114d8a03e5072cf1b3a6a9bb0f0761.webp)

4: Transitions  
Arguably the most important. I need to make it so that you can load a different tilemap when touching a certain block, usually on the edge.

Sorry I’m asking so many questions, I just need to know how I can make this a real game.

---

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [March 2, 2023, 9:50pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/2 "2023-03-02T21:50:14Z")

</div>

I have some answers!

> **problem 1**
>
> You can put sprites in it and have them wander around using some sort of AI.  
> you might be able to use the sprite utility extension to calculate distance between the enemy and the sprite.  
> [https://github.com/jwunderl/arcade-sprite-util](https://github.com/jwunderl/arcade-sprite-util)

> **problem 2**
>
> The hammer can be a sprite and you can use the sprite of kind overlaps othersprite block. ex. on sprite of kind hammer overlaps othersprite of kind enemy, destroy othersprite

> **problem 3**
>
> Similar to what I said in problem 1, you can make it so when it is in a certain distance, it says something.

> **problem 4**
>
> You can still use the overlaps tile block! for instance you can do, if overlapping tile (chest)  
> then set tilemap to the next level.

---

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [March 2, 2023, 11:00pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/3 "2023-03-02T23:00:38Z")

</div>

Also, you can still add animation for going forward/backward.

---

<div class="post-metadata">

### Author: ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)
#### Post date: [March 3, 2023, 12:50am UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/4 "2023-03-03T00:50:18Z")

</div>

I know, I just forgot to add that animation 😅

Another thing about answer 2:  
I want to add an animation for when Coneguy swings the hammer, but that would mean the sprite would need to be wider, and that might break some stuff.

Also, what do you mean by “the hammer can be a sprite”? Could there just be an invisible/intangible hitbox that appears when Coneguy plays the hammer animation?

---

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [March 3, 2023, 1:02am UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/5 "2023-03-03T01:02:56Z")

</div>

> [@TheConeGuy](#):
>
> what do you mean by “the hammer can be a sprite”?

The player can have an animation, of him swinging in place, without the hammer, and the hammer is created right over the player in the right spot, so when they are both animated at the same time, it looks as it is one sprite.

---

<div class="post-metadata">

### Author: ![BoostedGames](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/boostedgames/32/29419_2.png) [@BoostedGames](https://forum.makecode.com/u/BoostedGames)
#### Post date: [March 3, 2023, 10:52pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/6 "2023-03-03T22:52:24Z")

</div>

woah this looks cool its a very interesting use of raycasting

---

<div class="post-metadata">

### Author: ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)
#### Post date: [March 6, 2023, 5:53pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/7 "2023-03-06T17:53:38Z")

</div>

I’ve added a hammer, transitions, AND enemies to the game!  
Here’s the link: [https://makecode.com/\_PryDfA3ga7Cg](https://makecode.com/_PryDfA3ga7Cg)  
You can use your hammer by pressing B, and you can also destroy the enemy by whacking it with your hammer. There’s also a room with a floor of breakable blocks, where you can also hammer.  
The only reason NPCs aren’t here yet is because I couldn’t correctly start a cutscene. Do you know any ways this could happen using Raycasting?

---

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [March 13, 2023, 5:12pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/8 "2023-03-13T17:12:03Z")

</div>

Sorry for replying late, I didn’t see your question.

> **[cutscene example](https://arcade.makecode.com/S24046-17779-54149-90750)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I think this might be what you are looking for.  
The “Say” block displays really huge text, so you probably want it to be smaller.  
I think this can be achieved by having an invisible sprite that is farther behind the speaker be the one saying the words.

---

<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: [March 27, 2023, 11:18pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/9 "2023-03-27T23:18:13Z")

</div>

I like your character! It looks cool and the art is real nice

---

<div class="post-metadata">

### Author: ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)
#### Post date: [March 28, 2023, 9:41pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/10 "2023-03-28T21:41:16Z")

</div>

Thanks! 🙂

---

<div class="post-metadata">

### Author: ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)
#### Post date: [April 3, 2023, 4:23pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/11 "2023-04-03T16:23:33Z")

</div>

> **problem 1 math**
>
> √(x2−x1)\*\*2+(y2−y1)\*\*2

---

<div class="post-metadata">

### Author: ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)
#### Post date: [April 3, 2023, 6:32pm UTC](https://forum.makecode.com/t/paper-coneguy-help-feedback/18238/12 "2023-04-03T18:32:13Z")

</div>

it finds the distance between two points
