How to delete this square?

Recommended Posts

It depends on how you created it and on what you mean by delete. Judging from the screenshot you posted, it looks like you could just add the square once, then update its position: "square.position.y -= 100;"   If it's the exact same square, like in the picture, and you just want to move it, then there's no reason to clear and redraw the same square in your code.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.