View Full Version : ring problem

04-02-2013, 09:37 PM
I'm working on an assignment in which I have to create a ring catching game, and I'm almost finished, but I've run into a problem. After each attempt, whether the ring is caught or not, I have the ring move back up to the top of the screen and to a random spot left/right and in front of/behind where it was. However, the ring sometimes ends up offscreen. Is there a way to retain the randomness while keeping the ring onscreen?

Here's my file:

04-03-2013, 09:32 AM
Part of your problem is that Alice has no way of knowing the screen size or resolution setting for any individuals monitor, and the size of the runtime window...

What you might do is put an invisible object or object marker at a desired location in the world that is the appropriate hight above the ground, always tell your ring to return to that marker and then move to the left or right some random distance... Do both of these things together in time duration of 0 and you should get what you want...

04-03-2013, 07:27 PM
It worked. Thanks for your help!