# Increasing speed

**URL:** https://forum.kirupa.com/t/increasing-speed/303990
**Category:** Uncategorized
**Created:** [January 30, 2010, 5:21am UTC](https://forum.kirupa.com/t/increasing-speed/303990 "2010-01-30T05:21:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Danny0123](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@Danny0123](https://forum.kirupa.com/u/Danny0123)
#### Post date: [January 30, 2010, 5:21am UTC](https://forum.kirupa.com/t/increasing-speed/303990/1 "2010-01-30T05:21:57Z")

</div>

i’m using this code for increasing speed:

```php
onEnterFrame = function() {
    mult = 1.5;
    speed = 1;
    speedy = speed * mult;
    ball._x += speedy; 
}

```

it wont work.

how do i fix it?
