I was experimenting with the WASD keyboardmovement tutorials in the wiki by using Joy2Key and using my joypad to walk around and felt the 8-direction control method was quite restricting. I remember playing diablo 3 on the xbox at a friends house last week which has really great analog controls and I was wondering if it would be possible to recreate this.
I would imagine it would work in a same way as the WASD movements where you order the unit to move to a target 100 pixels in one direction every frame, but if you use an inbetween program to have the analogstick control the mouse movement, you could have the mouse move relative to the unit you control, so if you move up on the analogstick, you'll give a move order 100 pixels above the unit, but if you turn the analogstick 15degrees to the right, so will the mousecursor, thus simulating analog movement.
What do you guys think? Has this been done/tried/tested before? Would this be too taxing on the game? (I think it'll be just as taxing as the WASD system) and how would you guys try to get a system like this to work?
I've looked around the forums to see if anyone posted about this, but I coudn't find it.
I thought about trying to make something like this for my map, but for now there are a lot of things on my to-do list before I will approach this, so there's a good chance I will never actually try it out and it will just remain an idea.
That said, if you find some convenient methods to realize this or even put together a library for this I would definitely be interested!
I don't think this is a native thing you could do, but..
Perhaps if you put Mouse Relative On, and then used the Mouse Moved event?
You would then set up via your Control Panel (or System Preferences on mac) to have the joystick control mouse movement. In game, you would, anytime the mouse is moved, push the character in that direction.
it lets you conrol the mousecursor with a joypad/joystick.
the important part is that it let's you control the mouse using absolute values, so pressing up on the joypad will move the mouse up, and releasing it return the mouse to the center of the screen.
I'm going to try to create a movement system using this program, as it is the only way I can think of that starcraft will register analog movement: compare the distance between a unit and mousepointer.
if this system works, I'll post my results. I think this will give better results regarding to lag on battlenet, but we'll have to see.
Hi,
I was experimenting with the WASD keyboardmovement tutorials in the wiki by using Joy2Key and using my joypad to walk around and felt the 8-direction control method was quite restricting. I remember playing diablo 3 on the xbox at a friends house last week which has really great analog controls and I was wondering if it would be possible to recreate this.
I would imagine it would work in a same way as the WASD movements where you order the unit to move to a target 100 pixels in one direction every frame, but if you use an inbetween program to have the analogstick control the mouse movement, you could have the mouse move relative to the unit you control, so if you move up on the analogstick, you'll give a move order 100 pixels above the unit, but if you turn the analogstick 15degrees to the right, so will the mousecursor, thus simulating analog movement.
What do you guys think? Has this been done/tried/tested before? Would this be too taxing on the game? (I think it'll be just as taxing as the WASD system) and how would you guys try to get a system like this to work?
I've looked around the forums to see if anyone posted about this, but I coudn't find it.
I thought about trying to make something like this for my map, but for now there are a lot of things on my to-do list before I will approach this, so there's a good chance I will never actually try it out and it will just remain an idea.
That said, if you find some convenient methods to realize this or even put together a library for this I would definitely be interested!
I don't think this is a native thing you could do, but..
Perhaps if you put Mouse Relative On, and then used the Mouse Moved event?
You would then set up via your Control Panel (or System Preferences on mac) to have the joystick control mouse movement. In game, you would, anytime the mouse is moved, push the character in that direction.
Maybe this would work?
So I found a program: Joystick 2 Mouse http://www.imgpresents.com/joy2mse/j2m.htm
it lets you conrol the mousecursor with a joypad/joystick. the important part is that it let's you control the mouse using absolute values, so pressing up on the joypad will move the mouse up, and releasing it return the mouse to the center of the screen.
I'm going to try to create a movement system using this program, as it is the only way I can think of that starcraft will register analog movement: compare the distance between a unit and mousepointer. if this system works, I'll post my results. I think this will give better results regarding to lag on battlenet, but we'll have to see.
alot of joypads come with software that allows mouse control. my Logitech does. my xbox controller needs 3rd party software.