Hello everyone.
First of all I'm sorry for any language mistakes as English isn't my first language.
I want to create a simple pop ballons game and I have this code for random placing of the ballons.
positionX = rnd(600)
positionY = rnd(480)
So the ballons would hopefully come up randomly all over the game area.
I need help with code for clicking on them.
Mx=MouseX(): My=MouseY(): Mc=MouseClick()
This obviously checks the mouse position and state.
But how do i check whether the user clicked the image or not? I can't use this obviously as I don't know where it will be:
If Mx > 405 and My > 13 and Mx < 588 and My < 58
If Mc = 1