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
Hello,
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 ?
thanks
Mathieu
Did you add the keyboard or mouse object on your project ?
https://www.scirra.com/manual/113/keyboard
https://www.scirra.com/manual/114/mouse
Develop games in your browser. Powerful, performant & highly capable.
Plonk
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.
thanks,
kind regards,
Yes you can.
On object clicked (Event from the mouse object) -> Go to layout (System action).
Thanks,
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.