Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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'm trying to find a solution to launch an action when a user click with the mouse or press the Enter key on a sprite. But I didn't find the method to do this. Could you help me ?
Did you add the keyboard or mouse object on your project ?
Develop games in your browser. Powerful, performant & highly capable.
thanks for your help.
Yes I added keyboard and mouse object in my project but my question is " can we go to another layout when we click on a sprite ?" because I don't find the condition to do this.
Yes you can.
On object clicked (Event from the mouse object) -> Go to layout (System action).
This problem is solve.
I have one other question about the original size of the sprites I use. Is it important to have a PNG file for each sprite with the real size there is in the game ?
In fact, when I reduced the size of my big pictures to the real size used in the the game, it runs.