# Anyone have an idea of how to map songs in rhythm games?

**URL:** https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680
**Category:** Help
**Created:** [June 10, 2021, 6:29pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680 "2021-06-10T18:29:27Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![brandodon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brandodon/32/3625_2.png) [@brandodon](https://forum.makecode.com/u/brandodon)
#### Post date: [June 10, 2021, 6:29pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/1 "2021-06-10T18:29:27Z")

</div>

Im trying to make a song for my rhythm game, Rhythm Rave:

> **[Rhythm Rave (game results)](https://arcade.makecode.com/82975-94322-58319-87649)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

but I have no idea on how to make maps, the only thing I could think of would be a tilemap or arrays, but I really haven’t learned arrays, I’ve been learning in javascript.

---

<div class="post-metadata">

### Author: ![ThunderDrop180](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thunderdrop180/32/6820_2.png) [@ThunderDrop180](https://forum.makecode.com/u/ThunderDrop180)
#### Post date: [June 10, 2021, 6:43pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/2 "2021-06-10T18:43:33Z")

</div>

I dont really know either. sorry.  
Your game could turn into something great!

---

<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: [June 13, 2021, 5:17am UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/3 "2021-06-13T05:17:14Z")

</div>

You could try to make it into an array with the order of arrows, but maybe i can come up with something better a little later, give me a second i’m busy now, but i can try to make that

---

<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: [June 13, 2021, 5:21am UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/4 "2021-06-13T05:21:16Z")

</div>

Hello! I don’t use Javascript for Makecode, but I think I may be able to help in making a song/syncing to the notes within the game. What I did with my rhythm game is I had the song all laid out to start. Based on how many bpm the notes for the song were, I would have an on game update every () ms block. More bpm, quicker the game updates would be. What the game update was for was it would change a variable by 1, and that was what I would use for when notes would spawn in. It worked pretty well for syncing the inputs ingame to the song. I know I am not very good at explaining things, so if you want to see the actual code for what I did, here is the link to my game: [https://makecode.com/\_LCL0ipYbwbvJ](https://www.google.com/url?q=https://makecode.com/_LCL0ipYbwbvJ&sa=D&source=hangouts&ust=1623606702463000&usg=AFQjCNE4KtqshuKA_oX9DZGNJkDxatDG8A)  
Hope this helped!

---

<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: [June 14, 2021, 4:35pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/5 "2021-06-14T16:35:06Z")

</div>

The “On game update ()” statement is fixed, meaning that it never change after you introduce the first value.

---

<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: [June 14, 2021, 4:35pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/6 "2021-06-14T16:35:09Z")

</div>

This would be the best approach.

---

<div class="post-metadata">

### Author: ![brandodon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brandodon/32/3625_2.png) [@brandodon](https://forum.makecode.com/u/brandodon)
#### Post date: [June 14, 2021, 9:52pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/7 "2021-06-14T21:52:39Z")

</div>

I am so confused rn lol

---

<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: [June 16, 2021, 9:05pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/8 "2021-06-16T21:05:51Z")

</div>

Well, using a tilemap and scrolling down the control arrows would be way more efficient

---

<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: [June 16, 2021, 9:20pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/9 "2021-06-16T21:20:52Z")

</div>

Note that tilemaps are limited to 255x255 tiles.

---

<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: [June 16, 2021, 10:35pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/10 "2021-06-16T22:35:52Z")

</div>

Well, you can always reset and swap it out for another to continue. But i think 255 tiles is just enough considering 1 row = 4 notes max. Meaning if you want to put 1 in every row, that’s already 255 notes. I think there is no need for more but what I just said about swapping still counts if more mapping is needed.

---

<div class="post-metadata">

### Author: ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)
#### Post date: [June 17, 2021, 6:21am UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/11 "2021-06-17T06:21:33Z")

</div>

I don’t know why the makecode team changed the tilemaps from 512x512 (was it 512x512?) to 256x256 (most probably to reduce lag) but I remember how it used to be bigger.

---

<div class="post-metadata">

### Author: ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)
#### Post date: [June 17, 2021, 6:21am UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/12 "2021-06-17T06:21:38Z")

</div>

When you mean map songs is it to display the notes cuz i know how to do that. (I created a rhythm game but it was deleted before I could publish it)

---

<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: [June 17, 2021, 3:55pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/13 "2021-06-17T15:55:13Z")

</div>

No, I believe it was always 255x255, just that now the tilemap editor will limit it to 255x255. Before, if you put in a number over 255 it would glitch horribly.

---

<div class="post-metadata">

### Author: ![brandodon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brandodon/32/3625_2.png) [@brandodon](https://forum.makecode.com/u/brandodon)
#### Post date: [June 17, 2021, 3:57pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/14 "2021-06-17T15:57:20Z")

</div>

yes that, I need it and also the friday night funkin community need it for their huge game.

---

<div class="post-metadata">

### Author: ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)
#### Post date: [June 18, 2021, 4:08pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/15 "2021-06-18T16:08:35Z")

</div>

Imma start making it later

---

<div class="post-metadata">

### Author: ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)
#### Post date: [June 25, 2021, 5:44pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/16 "2021-06-25T17:44:34Z")

</div>

> **[Da test](https://arcade.makecode.com/85601-16254-69715-75720)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I hope this works cuz I kinda forgot how to do it (my code got deleted)

---

<div class="post-metadata">

### Author: ![brandodon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brandodon/32/3625_2.png) [@brandodon](https://forum.makecode.com/u/brandodon)
#### Post date: [June 30, 2021, 7:34pm UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/17 "2021-06-30T19:34:34Z")

</div>

ik im like super late but that is an effective way to do this, but it’s so time consuming since you have to write a giant line of code (or a bunch of blocks) to get this to work.

---

<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 3, 2021, 12:46am UTC](https://forum.makecode.com/t/anyone-have-an-idea-of-how-to-map-songs-in-rhythm-games/8680/18 "2021-07-03T00:46:32Z")

</div>

Yeah, rhythm games take a really long time to code.
