Hello there,
when I try to use the graphics object, I get an error.
I tried the code from the API Documentation (https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Graphics.html)
graphics.lineStyle(5, 0xFF00FF, 1.0);
graphics.beginPath();
graphics.moveTo(100, 100);
graphics.lineTo(200, 200);
graphics.closePath();
graphics.strokePath();
And then I tried the code from several examples. I always got that error.
Can anyone tell me how to draw, e.g. a line without getting that error?