Hey developers!
How would I create a 2D drawing system? What functions would I use for this? I don’t need a full script, just a few things to get me started. Any help would be appreciated!
Have a nice day!
Hey developers!
How would I create a 2D drawing system? What functions would I use for this? I don’t need a full script, just a few things to get me started. Any help would be appreciated!
Have a nice day!
Hey there! I linked a few functions here you will probably need for it:
Mouse.Hit to get the mouse’s position.
You will also have to use RenderStepped to check the mouse every frame, it says it’s deprecated, but this isn’t the case yet, you may want to keep an eye on when the new functions for renderstepped are out, I’m sure those will appear when they are out, for now, you can just use RenderStepped.
Now you can do a few things, first of all, create a new frame every time, but this is very inefficient and will cause a lot of lag, so we have to find a better methode.
A better method would be to take track of the mouse, then draw a straight line from the mouse’s first point and the last point.
This post explains it briefly:
I hope this helped, good luck with your project and feel free to let me know if you have any questions or come across any bugs when making it!
First of all, thanks for the reply! I will take a look at the DevHub pages and the topic in a second.