I added button on my screen and only panel button extention installed but on previewing its showing java script error. I already tried ready to use button from gdevelope asset store but same issue goes with them and its still showing javascript error pressed is not a function so can anybody know how to fix this issue
Hi,
To add a working button in GDevelop:
- Add a new object and search for Panel Sprite Button.
- Choose one of the available options or create a new one.
- Place the button in the scene editor.
- Configure the events, such as actions triggered when the button is pressed.
Could you please share the code events, if you still persist with the trouble ? Here is the workflow of how it should look like:
This is a very simple issue you have, try opening a new project, take a look in the documentation and videos, and re-create the steps. You have most-likely made a mistake with naming or have conflicts with other events, you can quickly check that out by just starting fresh.
Panel sprite button - GDevelop documentation
Custom Buttons in Gdevelop5