Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Mousepointer instead crosshair

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
Yeto1964
Member
Member
Posts: 1
Joined: February 26th, 2012, 4:21 am

Mousepointer instead crosshair

Post by Yeto1964 »

Hello,

is it possible to have the Mouse working "as a mouse" in rpg-mode while
walking alround. If I do this, there is just the crosshair in the middle of the screen.
The mouse is only shown, when you open a menue.
This is not the way an RPG works!

Maybe someone can help me with that; I searched the forum, but found nothing depending this issue.
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Mousepointer instead crosshair

Post by Hirato »

Firstly, RPGs do not require a birds-eye view.

To have this sort of "mouse select", you'd need to free the crosshair, which for starters means you'd need to remove the hook in the GUi system that resets it to x,y: 0.5 0.5 every frame, and you'd throw this into the inv perspective matrix to get the position vector of the cursor on the world.

You would then use this this result to trace from the camera to the cursor position and select a hover target for any clicking interactions.
I'll leave making the UI/HUD up to you, as well as how the various keys will behave here.
Also if you want to override the camera, that'd be easiest to hijack recomputecamera in the game code to do a detached thirdperson/birds eye perspective.
This is not a url, clicking it is pointless
Locked