# Pokemon Red/Blue in Makecode

**URL:** <https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336>\
**Category:** Help\
**Created:** [July 22, 2021, 12:00am UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336 "2021-07-22T00:00:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoMustangs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gomustangs/32/4323_2.png) [@GoMustangs](https://forum.makecode.com/u/GoMustangs)\
**Post date:** [July 22, 2021, 12:00am UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/1 "2021-07-22T00:00:37Z")

</div>

Some of my summer school students like Pokemon, so I made this demo to show them how a game like Pokemon could be made with Makecode. It’s far from perfect, so any suggestions or critiques are welcome. Four questions:

Does anyone know of an extension that could help with keeping track of HP in between battles?

The fight with Gary is activated when the player crosses a sprite that blends into the ground. Does anyone know how to make a variable change when the player crosses a certain y or x coordinate? I feel like that would be a better way to activate battles.

Can walls only be added to sprite maps? Can invisible walls be added to background images?

> **[pokemon](https://arcade.makecode.com/29534-36409-14099-75001)**
>
> 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:** [July 22, 2021, 12:11am UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/2 "2021-07-22T00:11:45Z")

</div>

Answers in order:

1. Both the status-bars and arcade-sprite-data extensions are useful for this. You can attach them to the pokemon sprites and then set the sprites to be invisible in between battles

2. You can hide the trigger sprite by using the sprite flag block (the one that says “set auto-destroy on”). We have an “invisible” flag that hides the sprites but still lets overlap events happen. Personally, I like using overlap events for event triggers, but if you want to use the player position instead the easiest way is to check it inside an “on game update” event

3. Yes, walls only work with tilemaps. However, you can add walls to transparent tiles and achieve a similar effect. The background image will show through any blank tiles. If you do this, I recommend making the tilemap the same size as the screen (10x8). If you want more precision, you can use the riknoll/small-tilemaps extension to create a tilemap with 8x8 tiles instead of 16x16

---

<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:** [July 22, 2021, 12:12am UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/3 "2021-07-22T00:12:11Z")

</div>

Also, check out [sucromon](https://forum.makecode.com/t/arcade-advanced-stream-77-sucromon-pt-7-finale/2946)

---

<div class="post-metadata">

**Author:** ![cfan\_yjr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cfan_yjr/32/4609_2.png) [@cfan\_yjr](https://forum.makecode.com/u/cfan_yjr)\
**Post date:** [July 22, 2021, 4:00pm UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/4 "2021-07-22T16:00:03Z")

</div>

Well done

---

<div class="post-metadata">

**Author:** ![GoMustangs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gomustangs/32/4323_2.png) [@GoMustangs](https://forum.makecode.com/u/GoMustangs)\
**Post date:** [July 22, 2021, 4:00pm UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/5 "2021-07-22T16:00:18Z")

</div>

Cool! Thanks for the feedback! I really appreciate it!

---

<div class="post-metadata">

**Author:** ![GoMustangs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gomustangs/32/4323_2.png) [@GoMustangs](https://forum.makecode.com/u/GoMustangs)\
**Post date:** [July 22, 2021, 4:34pm UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/6 "2021-07-22T16:34:34Z")

</div>

Thanks! I appreciate the feedback!

---

<div class="post-metadata">

**Author:** ![biscuit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/biscuit/32/4404_2.png) [@biscuit](https://forum.makecode.com/u/biscuit)\
**Post date:** [July 23, 2021, 10:37pm UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/7 "2021-07-23T22:37:20Z")

</div>

Very well done with the art and animations! Best of luck for your students!

---

<div class="post-metadata">

**Author:** ![GoMustangs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gomustangs/32/4323_2.png) [@GoMustangs](https://forum.makecode.com/u/GoMustangs)\
**Post date:** [July 26, 2021, 4:56pm UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/8 "2021-07-26T16:56:59Z")

</div>

Thanks! I really appreciate that!

---

<div class="post-metadata">

**Author:** ![bosskid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bosskid/32/5936_2.png) [@bosskid](https://forum.makecode.com/u/bosskid)\
**Post date:** [March 14, 2022, 4:24pm UTC](https://forum.makecode.com/t/pokemon-red-blue-in-makecode/9336/9 "2022-03-14T16:24:49Z")

</div>

ugh …
