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