# Adjusting speed in rhythm game

**URL:** <https://forum.kirupa.com/t/adjusting-speed-in-rhythm-game/274180>\
**Category:** programming\
**Created:** [October 26, 2008, 5:43pm UTC](https://forum.kirupa.com/t/adjusting-speed-in-rhythm-game/274180 "2008-10-26T17:43:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HondaFoo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hondafoo/32/96_2.png) [@HondaFoo](https://forum.kirupa.com/u/HondaFoo)\
**Post date:** [October 26, 2008, 5:43pm UTC](https://forum.kirupa.com/t/adjusting-speed-in-rhythm-game/274180/1 "2008-10-26T17:43:10Z")

</div>

I am working on a DDR-like rhythm game. The speed of the arrows moving up the screen and the distance between them are already defined as **arrowSpeed** and **sTempo** , respectively, but say I wanted those values to be different based on the current level/song being played.

How would I accomplish this? If/else statements? Or something else?

If anyone could help me out I’d really appreciate it!

**SOURCE:**  
[http://tsuaii.com/dl/hondafoo.fla](http://tsuaii.com/dl/hondafoo.fla)
