Hi guys. I'm making a robot game. How do I make it glide to where I want? Cuz I have this chat bar, and when i click a button on it, the robot comes onto the chat bar and messes it up. TELL MEH. P.S. I am new to scratch forums. i have projects, but never been here before.
Offline
Oh ok I think I see the problem.
So when you click somewhere on the screen the robot glides to it, right?
So to stop it from going into the chat bar you need to put up an if statement.
After the bit that says
if <mouse down?>Put an if that says, for example, that the y position must be higher than whatever the y top of the chatbox is and that the x position must be greater than whatever the x position at the right of the chatbox is. Get that?
Offline
if <mouse down?> if <not<<y position> < <top of chatbox>>> //if the chatbox is on the bottom glide (whatever) secs to x: <mouse x> y: <mouse y> end end
Offline