I have added the mouse object to my game. I would like to know if i can obtain the click's x position in a condition somehow. I have tried all the screens to no avail. I want to perform some action if the user clicks to the left side of the screen and another if he clicks to the right. Any assistance would be greatly appreciated.
Sincerely,
Yeti Kart Racer
you can make 2 sprite (red,blue) one in the left and other in right if mouse clicked on red it do something , and blue do something else but if you want right and left click of an object this is something different...
Add a condition 'System -> Compare two values' and input 'Mouse.X > WindowWidth/2'.
Quick example: LeftRightScreen.capx (r95)
Develop games in your browser. Powerful, performant & highly capable.
Add a condition 'System -> Compare two values' and input 'Mouse.X > WindowWidth/2'. Quick example: LeftRightScreen.capx (r95)
Thanks, this is exactly what i was looking for.