# 2button gameplay?

**URL:** <https://forum.kirupa.com/t/2button-gameplay/244601>\
**Category:** Uncategorized\
**Created:** [November 20, 2007, 3:24am UTC](https://forum.kirupa.com/t/2button-gameplay/244601 "2007-11-20T03:24:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vin23leo](https://avatars.discourse-cdn.com/v4/letter/v/b77776/32.png) [@vin23leo](https://forum.kirupa.com/u/vin23leo)\
**Post date:** [November 20, 2007, 3:24am UTC](https://forum.kirupa.com/t/2button-gameplay/244601/1 "2007-11-20T03:24:08Z")

</div>

hey guys, i need some help, im making a running based game, i need to control the characters movement, by pressing left, right, left right to run, the faster you push them in the order the faster you run, any ideas

if (Key.isDown(Key.RIGHT)) {

```
	movement += 10;

```

}

cheers
