Code_Man Posted November 8, 2024 Posted November 8, 2024 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. Quote
rlranft Posted January 31 Posted January 31 (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 January 31 by rlranft Quote
Code_Man Posted February 1 Author Posted February 1 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.