# Pong ball trail: need help!

**URL:** <https://forum.kirupa.com/t/pong-ball-trail-need-help/289494>\
**Category:** Uncategorized\
**Created:** [May 31, 2009, 5:51pm UTC](https://forum.kirupa.com/t/pong-ball-trail-need-help/289494 "2009-05-31T17:51:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyingmonkey456](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@flyingmonkey456](https://forum.kirupa.com/u/flyingmonkey456)\
**Post date:** [May 31, 2009, 5:51pm UTC](https://forum.kirupa.com/t/pong-ball-trail-need-help/289494/1 "2009-05-31T17:51:23Z")

</div>

i’m making a pong game and i’m trying to give the ball a trail that blurs and disappears. i gave the trail 30 frames, each one a bit more blurred than the last. the ball duplicates the trail movie clip each frame, giving it a number after the name which increases by one each frame. each frame for the trail has stop(); in it. this is the code i have in the trail:

```auto
onClipEvent(load){
	if(this._name=="BallTrail"){
		this._visible=false
	}else{
		this._visible=true
	}
	this._x=_root.Ball._x
	this._y=_root.Ball._y
	frame=0
}onClipEvent(enterFrame){
	frame++
	if(frame>30){
		this.removeMovieClip()
	}
	gotoAndStop(frame)
}

```

i’m having trouble getting it to be removed. it plays through every frame, but won’t go away. can someone tell me what’s wrong?
