Jump to content

Recommended Posts

Posted

So im getting serious about strategy mode in t3d.

Right now i have rudamentary controls and interfacing working including camera controls, but with the keyboard only.

What i want is to have the mouse when moved to the edge, but there seems no obvious way to do it.

I do have somewhat working onClick method for that feedback but i also need a way to drag a selection box and i have no idea how to do the raycast thing in that sort of way either.

Maybe i oversaw it but there appears to be no onClick method documented for gametscrtl, dunno whats up with that.

It would be huge step forward in having a functional real time strategy game in t3d, all cc0/mit x11 too.

  • 2 months later...
Posted (edited)

The old docs had a basic RTS example https://github.com/dottools/Torque3D-Documentation

My fork has some extensions to that https://github.com/RichardRanft/Torque3D-Documentation

It doesn't look like I ever got around to detecting the mouse near screen edge in onMouseMove() in gameTSCtrl to and pan camera in the appropriate direction....

Note that this documentation is WAY out of date, but gameTSCtrl::onMouseMove() is where you probably need to start.

Edited by rlranft
Posted

Il give it a try see where that takes me, thanks for the hint.

The strategy part is problematic either way so its a low priority but would make the interface a lot less horrible to use.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...