Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Suleymanov |
In play mode a player should see the line of Path2D and be able to edit (not create, but move the handles of pre-made) Path2D. Is it possible at all?
Solved the visibility part. Huge thanks to both of you! Now I need to figure out the “editable” part while in play mode.
Suleymanov | 2020-06-01 14:13
Before continuing to help you, I need to know how to choose a point of the curve according to the position of the mouse. Create a question about it:
Convert a vector2 position to an array index in Curve2D - Archive - Godot Forum
estebanmolca | 2020-06-02 01:30
It solve here: how find beetween which points is the cosest point to mouse in a Curve2D? - Archive - Godot Forum
estebanmolca | 2020-06-10 22:07
Much appreciated, thank you!
Suleymanov | 2020-06-12 06:46
With a huge appreciation for your help, can you kindly guide me on how I can add bezier handle controls? Also, function CREATE does create points, though I’d love it to be on the curve just like Path2D editor does, instead of at any place the mouse right-clicked. And also how can I add DELETE function to delete curve points?
I just want to add your solution helped me a lot and hope it will help others on the same boat too. Very highly appreciated!
Suleymanov | 2020-06-12 09:59