# Game Help Plz, AS2

**URL:** <https://forum.kirupa.com/t/game-help-plz-as2/305747>\
**Category:** programming\
**Created:** [March 3, 2010, 1:49am UTC](https://forum.kirupa.com/t/game-help-plz-as2/305747 "2010-03-03T01:49:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverneo188](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Post date:** [March 3, 2010, 1:49am UTC](https://forum.kirupa.com/t/game-help-plz-as2/305747/1 "2010-03-03T01:49:17Z")

</div>

I have a game running at 30 fps ( i say that because it might be part of the problem but i hope not.

I have a clip with this code

```auto
 
onClipEvent(enterFrame){
_x = _root.hero._x
_y = _root.hero._y
}

```

but whenever hero moves the movie clip with this code is delayed behind it like it’ll be a few pixels behind but i need it on the clip. I cant put it in hero cuz that will mess with the rest of my code. is there a better code for me to put on this movie clip without having to change the fps?
