Game Development Community

Help with diablo style of controls

by Donavan Jones · in Torque Game Engine · 08/23/2010 (9:43 pm) · 3 replies

Hi I have added the advance camera resouse and using god view with good results.
Can some one help with adding diablo style of controls. In case you dont know what they are. You point and click or just click and hold and your character moves to that point. What I am thinking is you can grab the mouse location then cast a ray down and bam your location you want to move. Now this brings up another question. How do display a texture for the mouse and get the mouse to show up in game play? Not much of a coder and I need alot of help.

Thanks,

Donavan Jones

#1
08/23/2010 (11:54 pm)
Those controls are called RTS controls. There are many resources on that around here. I'll find some and be right back.

EDIT: There is a genre kit for TGE. You should be able to implement it into T3D though:
http://www.torquepowered.com/products/rts-genre-kit

EDIT2: If you don't want to spend any money:
http://www.torquepowered.com/community/resources/view/14265
#2
09/09/2010 (2:32 pm)
It sounds to me that what part of what you are asking is how to display the cursor.

that is not terribly hard it involves using a few of the methods of the canvas.

Canvas.setCursor("DefaultCursor");
lockmouse(false);
Canvas.cursoron();

that should unlock the mouse if it has been locked and display the cursor.
#3
09/09/2010 (3:46 pm)
cool thanks