GDevelop-extensions
GDevelop-extensions copied to clipboard
Create DrawGrid.json
draw a virtual grid.
Can you provide the extension please ? (edit) and an example project
Performance is really bad because of how you draw the cells (using a loop)
The issue is not the loop. It's the instance creation.
This example has events that draw a grid: https://gdevelop.io/game-example/free/snap-object-to-grid
fixed the performance and added a way to change colors in the action. Also, if no instance of the shape painter object exists, the action creates one.
What happens when the camera is moved? Can extension users use the grid to debug path finding of a game with scrolling? What do you think about making a behavior that updates the grid when needed?