Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I would like to be able to retrieve the mouse X and Y position. You can get around it right now by creating an invisible object and give it the mouse movement.. but that seems quite unproffesional.
Use MouseX and MouseY
Develop games in your browser. Powerful, performant & highly capable.
That's the one... in the system object. MouseX(1), MouseX("My layer") etc gets mouse X for a specified layer too.
Oh yes btw why its in the System Object and not in the Mouse & Keyboard object?
Good point, that's caught a few people out. Next build has shortcuts to MouseX and MouseY in the Mouse & Keyboard object's expressions.
Oh nice! I looked in the mouse/keyboard object for it. That's why i didn't find it.
Slightly off topic, but is there a way to change the X and Y of the mouse? As in, 'Set Mouse X' or 'Set Mouse Y'?
Not yet, I guess that's a logical addition to mouse & keyboard sometime soon as well