So I've been having problems with respawning am object. I designed a simple game where there is a square and when you click on it you gain 1 point. When you click on it the object respawns to a random location (which is what I wanted).
I did this by doing the following
'Set position'
X axis....random (950)
Y axis....random (450)
Since the screen has been set to 1280 x 715 it gives plenty of excess space so that the square does not go of the screen. The cube is 90x90.
So the problem is that when it respawns it occasionally goes half off the screen so only half of the cube is visible on the screen even when u set the randon position to 'x axis random (200)' and 'y axis random (100)' it still spawns partly off the screen. Any ideas????
Thanks so much