Basic Usage
After following the steps in Getting Started, we can now implent it into our games!
Creating a DynamicCrosshair
| Creating Crosshair | |
|---|---|
Warning
For the module to work, you must call the DynamicCrosshair:Enable() function
Crosshair Movement
DynamicCrosshair supports various ways to move our crosshair, lets see some of these ways:
Crosshair Set
Note
DynamicCrosshair's :Set() function has a very simular look to :Shove(), but they have different behaviors.
If you want :Set() to permantly set the radius of the crosshair, look toward using :Lock() or set the radius minimum.
Crosshair Smooth Set
DynamicCrosshair's SmoothSet() function uses Roblox's TweenService to tween the crosshair's radius to a final goal.
In this video, for example purposes the :Set() function is called 3 times with a radius parameter of 60
Crosshair Shove
Bug
DynamicCrosshair's :Shove() is currently experiencing odd behaviors, should be fixed soon. It is suggested to use :Set() to replace :Shove() until it is fixed.
DynamicCrosshair crosshair shove will "shove" the crosshair's radius based on Spreading.IncreasePerSecond
| Shove Example | |
|---|---|
Crosshair Customization
If you are looking to customize the looks of the crosshair, please visit Display Customization
Follow Mouse
| Follow Mouse Example | |
|---|---|
Lock The Crosshair
Locking the crosshair will lock out the crosshair's radius from decreasing at all, until enabled again.
| Follow Mouse Example | |
|---|---|
Next Steps
Go Visit: Display Customization | Raycasting | Hitmarkers