I created an SVG path command through the online svg path creator tool
I added the curved extension to the scene and the tween, ysort and speedpath movement behavours to the image animation object that i want it to follow. But tothing happens. Here is the event sheet:
If this svg path editor (same @jack is using in his example) doesnât recognize your svg path, GDevelop wonât.
Also, your string values ââseem low, so the movement would be imperceptible. You should keep the values ââin your svg string proportional to the scale of your game.
I think his path was visible in the editor because he created it there.
Here is my svg from the video to test. "M 0 0 L 37 0 L 62 54 L 117 6"
There are different SVG encodings, GD doesnât support all of them, thatâs why the wiki says save as Optimized SVG in Inkscape. Maybe this online editor is not compatible but normal it ends in damaged paths instead of zero movementâŚ
You can also make the path visible in GD using the Shape painter object and the Draw the trajectory action.
No, Iâm suggesting the opposite: that path isnât visible in that editor, nor in any other editor.
I just tested his svg string, but it returned nothing in the editor (see the attached image). I donât believe the issue lies with the editor itself. Iâve tried numerous path strings created within it, both with and without the âminimize outputâ option, and all of them translates correctly into GDevelop.
This is a translation of @vivekC string path: âM 0 0 L 1 0 V 0 L 1 0 v -1M 0 0 L 1 0 V 0 L 1 V -1â.
It contains non valid instructions and all the values are in the range of -1 to 1. SoâŚ
That string is not readable
Even if fixed, the values are too small to generate perceptible movement in a path, because GDevelop proyects those values in a pixel scale. Just picture how much movement can be generated by a path wich values range between -1 and 1: all the movement wil be confined to a 2x2 pixels square, wich is not enough, even in a small windows frame like 640x480 pixels⌠letâs not say full screen resolutions
Yours works perfectly in many editors a visualizers. The problem is in his svg string not with the online SVG editors or with GDevelop.
I made my own example with a string generated in that editor. It uses these few actions to put an object in a path everytime is clicked: