# Game Problem

**URL:** https://forum.kirupa.com/t/game-problem/25276
**Category:** flash
**Created:** [July 11, 2003, 1:46am UTC](https://forum.kirupa.com/t/game-problem/25276 "2003-07-11T01:46:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BullDog\_Flash](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@BullDog\_Flash](https://forum.kirupa.com/u/BullDog_Flash)
#### Post date: [July 11, 2003, 1:46am UTC](https://forum.kirupa.com/t/game-problem/25276/1 "2003-07-11T01:46:13Z")

</div>

```auto
onClipEvent (load) {
    function reset() {
        this._x = 600;
        this._y = random(200)+100;
        sharkspeed = random(4)+1;
    }
    reset();
}
onClipEvent (enterFrame) {
    if (_root.fish.scrollStart) {
        this._x -= +_root.mainGround.groundSpeed;
    } else {
        this._x -= sharkspeed;
    }
    if (this._x<-10) {
        reset();
    }
}

```

See that code there is supposed to make my enemy quite fast at times since it is random.’

But it goes very slow when i start moving my fish and start scrolling.  
Could you [please tel me why

GroundSpeed = 10  
Shark Speed = Random of course  
And the FPS = 25

it all seems to be fine please help me if you need the fla badly ill give it to you

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 11, 2003, 10:11am UTC](https://forum.kirupa.com/t/game-problem/25276/2 "2003-07-11T10:11:55Z")

</div>

i had this problem before can i see the fla?
