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
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,
Develop games in your browser. Powerful, performant & highly capable.
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.