Okay this is more of a tutorial than question. I see in games there is clicking involved. But let's say you need to click a sprite to do a certain thing while playing. Let's say you are on a different thing in the game and the sprite you need to click is not there, it is hiding. Well if you know the y and x co ordinates, and click it it does that certain thing! And that, well is kinda strange. So I know how to fix that problem! You have to make a variable FOR THAT SPRITE ONLY (unless you want it to be with others) and hide the variable. Set it to 0. Put if variable = 1 then do something or if you are doing touching mouse pointer and mouse down, add another add and showing = 1. Set the variable to 1 when it is showing. When it is hiding set it to 0. It should work out . Hope this helped others who had this problem.
Offline