Jump to content

[SOLVED] Change default implementation of player


photo

Recommended Posts

Posted

How can we change the default behavious of  player spectator class.

 

In scratch project I want the camera to change direction when I hold the left mouse button and move the cursor, instead of single click and move.

 

I tried MouseButtonReset() but that resets the event for the whole application.

Posted

You can get Controls from player, reset input that do change direction and set they by your logic or use DummyControls and define all inputs by your logic.

  • 3 weeks later...
Posted

Just pass a MOUSE_SOFT define into the script system (-extern_define MOUSE_SOFT).

And check the mouse logic inside data/core/scripts/system/system.h file.

×
×
  • Create New...