# Please help me with my puzzle game!

**URL:** <https://forum.kirupa.com/t/please-help-me-with-my-puzzle-game/194605>\
**Category:** Uncategorized\
**Created:** [July 24, 2006, 10:45pm UTC](https://forum.kirupa.com/t/please-help-me-with-my-puzzle-game/194605 "2006-07-24T22:45:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnsson](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Johnsson](https://forum.kirupa.com/u/Johnsson)\
**Post date:** [July 24, 2006, 10:45pm UTC](https://forum.kirupa.com/t/please-help-me-with-my-puzzle-game/194605/1 "2006-07-24T22:45:09Z")

</div>

Hiiii:hugegrin:

Can someone please tell me what’s wrong with this actionscript:

```auto

_global.score = 0;
_global.maxscore = 10;
_root.correct = new Sound();
_root.correct.attachSound("correct");
MovieClip.prototype.checkMyPos = function() {
 if (eval(this._droptarget) !== eval("_root.dt"+this.id)) {
  this._x = this.xpos;
  this._y = this.ypos;
  _root.fartsound.start();
 } else {
  _root.correct.start();
  _global.score++;
  this.gotoAndStop(2);
  this.enabled = false;
[COLOR=red] this._x = dt._x;
  this._y = dt._y;[/COLOR]
  if (_global.score>=_global.maxscore) {
   _root.gotoAndPlay(2);
  }
 }
};
stop();

```

I know the problem is in the red area.  
(I want the pieces to jump in place once they’re dropt close to the target)

Thanx!!!:bounce:
