[Plugin] Baz Simple Mouse Cursor/Settings

This allows you to quickly set up a mouse cursor and have it interact with Game Objects (GO) and visual scripts (VS) from AGMaker.

agm.windows.editor.x86_64_YpxMP8wPlq

How to install:

  1. Download the plugin and unzip it.
  2. Take the addons folder and copy it into your project (if you already have an addons folder, it will only add the necessary folder and won’t overwrite anything).
  3. Add a BindObjects node to the player and add the baz_mouse_cursor GO to its data.

v1.1:
baz_mouse_settings_v1.1.zip (27.2 KB)
→ Buttons covered by another object now respond to hover and click again.
→ The cursor now always draws above menus, UI, and screen shaders (CRT, blur, etc.) so it stays crisp.
→ The cursor now stays a constant size on screen regardless of camera zoom.
→ Hidden objects (or ones with a hidden parent) are no longer picked up as hover targets.
→ No more crashes when changing scenes/portals while dragging an object.
→ Added Mouse Priority so when two interactive objects overlap, the higher priority wins (defaults to 0).
→ Fixed a loading bug from inconsistent folder path capitalization (also fixes export and Mac/Linux).

v1.0:
baz_mouse_settings.zip (22.9 KB)

Video showing steps:

How to make a GO pickable (meaning you click on it, can drag it around, and drop it):

  1. Go to the desired GO scene.
  2. Add a BazMouseSettings node.
  3. Set the SwitchSettings to use.
  4. Choose Pickable from the Mouse Action Type.

Video showing steps:

How to make a GO clickable (meaning you click on it and can get a custom reaction through visual script):

  1. Go to Project → Project Settings → Input Map and create an input for the left mouse click.
  2. Go to the desired GO scene.
  3. Create a switch that will turn on when clicked (for use in VS).
  4. Add a BazMouseSettings node.
  5. Set the SwitchSettings node.
  6. Make sure Clickable is selected from the Mouse Action Type.
  7. Type in the name of the switch you created in step 2.

Video showing steps 2-7:

Now in the VS of the GO you can customize whatever reaction you want using both the input for left mouse click and switch as the condition:

How to customize cursor:

  1. Go to baz_mouse_cursor.tscn.
  2. Click on the AnimationPlayer.
  3. Find the animations and their respective keyframes and change them out as you please.

Video showing steps:

1 Like

Updated to v1.1:
→ Buttons covered by another object now respond to hover and click again
→ Cursor now always draws above menus, UI, and screen shaders (CRT, blur, etc) so it stays crisp
→ Cursor now stays a constant on screen size regardless of camera zoom
→ Hidden objects (or ones with a hidden parent) are no longer picked up as hover targets
→ No more crashes when changing scenes/portals while dragging an object
→ Added Mouse Priority so when two interactive objects overlap, the higher priority wins (defaults to 0)
→ Fixed a loading bug from inconsistent folder path capitalization (also fixes export and Mac/Linux)

1 Like