Project height issues

if(this.isClone)
{this.y -= 20;
if(this.y>project.height)
{this.remove(); }}

even when outside of the screen it will not disappear, i works with the project width but not height

When an object’s y value is 0, its center is at the top of the project area. When its y value is equal to the project height, its center is at the bottom of the project area. It can be a little bit confusing, but knowing this, we should be able to find a solution. Since the y values of your clones are decreasing, they’re moving upwards, so you want them to disappear when they reach the top? In that case, you would want to use 0 in place of project.height, and you would have to change your less than sign to a great than sign.

if(this.isClone)
{this.y -= 20;
if(this.y<0)
{this.remove(); }}

On a side note, that code will make the object disappear when it is halfway past the top of the project area (since the y value is based on the object’s center is). If you would rather have it disappear only when it is entirely past the top of the project area, this code will do that instead:

if(this.isClone)
{this.y -= 20;
if(this.y<0-this.height/2)
{this.remove(); }}