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.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
Changing Controls
Changing Controls
Hello,
I am a neuroscience researcher. We are making trying to make a virtual world for our experimental mice to navigate themselves in. I have learned to use Platinum Arts Sandbox to make the maps, but require assistance in changing the game controls to work with the mouse only.
Basically all I need done is to switch the mouse, up and down directionality capability with the keyboard's W and S respectively. Apparently the only way to do this is with changing the coding. Could anyone please assist me with this. If you are still wondering as to exactly what I am trying to do, please watch this video.
http://www.youtube.com/watch?v=1DJOTEDBA2c
Best,
I am a neuroscience researcher. We are making trying to make a virtual world for our experimental mice to navigate themselves in. I have learned to use Platinum Arts Sandbox to make the maps, but require assistance in changing the game controls to work with the mouse only.
Basically all I need done is to switch the mouse, up and down directionality capability with the keyboard's W and S respectively. Apparently the only way to do this is with changing the coding. Could anyone please assist me with this. If you are still wondering as to exactly what I am trying to do, please watch this video.
http://www.youtube.com/watch?v=1DJOTEDBA2c
Best,
-
- Support Team
- Posts: 2458
- Joined: April 27th, 2010, 5:31 pm
- IRC Username: CP
Re: Changing Controls
I'm not entirely sure about this, but I think it would be done by modifying one of the many configuration files with keybinds, such as data/defaults.cfg. I hope Hirato comes around, he'd know for sure. Hope you finish your project, I like the look of it.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Re: Changing Controls
This would be done through the code.
Essentially you want something akin to the classic doom.
My approach to this would be to
1) create some sort of entropy variable with a limit of about 500 in each direction
2) increase it when the mouse is moved forward and decrease it when it's moved backwards
3) during the update cycle
3.1) set the player1->move to clamp<int>(1, -1, entropy)
3.2) move entropy closer to 0, based on the value of curtime
Good Luck!
Essentially you want something akin to the classic doom.
My approach to this would be to
1) create some sort of entropy variable with a limit of about 500 in each direction
2) increase it when the mouse is moved forward and decrease it when it's moved backwards
3) during the update cycle
3.1) set the player1->move to clamp<int>(1, -1, entropy)
3.2) move entropy closer to 0, based on the value of curtime
Good Luck!
This is not a url, clicking it is pointless
Re: Changing Controls
Thank you pie33 for your help and interest.
Hirato,
Could you possibly give me directions to accomplish this for someone who does not have a coding background? I understand that it is inconvenient for you. However, I think it would be worthwhile because to be able to say that the program you developed was used for scientific research is one large achievement to add to your resume.
Thank You
Hirato,
Could you possibly give me directions to accomplish this for someone who does not have a coding background? I understand that it is inconvenient for you. However, I think it would be worthwhile because to be able to say that the program you developed was used for scientific research is one large achievement to add to your resume.
Thank You
Re: Changing Controls
Hirato he just wants to remove "mouselook" and replace bind W forward with bind (mousemove forward variable) forward. Is there a variable for moving the mouse forward we can use in defaults.cfg? I'll be taking more looks myself today. Take care.
-mike
-mike
Sign up for our Newsletter to keep up to date with the Sandbox news!
We also have a facebook page, facebook group, myspace page and a twitter page[/b][/color]!
We also have a facebook page, facebook group, myspace page and a twitter page[/b][/color]!
Re: Changing Controls
mousemove isn't exposed as a key and therefor cannot be bound without modifications to the code.Mike wrote:Hirato he just wants to remove "mouselook" and replace bind W forward with bind (mousemove forward variable) forward. Is there a variable for moving the mouse forward we can use in defaults.cfg? I'll be taking more looks myself today. Take care.
-mike
I'll make a patch for our little friend, I've already given him as much as I can without holding his hand through every step of the way.
This is not a url, clicking it is pointless
-
- Support Team
- Posts: 2734
- Joined: January 13th, 2010, 12:42 pm
- Name: Timothy
- IRC Username: I use Steam
- Location: Looking over your shoulder...
- Contact:
Re: Changing Controls
That's what I thought. Hence the reason I never suggested it. Will the patch be included in the regular version now?Hirato wrote: mousemove isn't exposed as a key and therefor cannot be bound without modifications to the code.

Want a user bar like this one? PM Leo!
Re: Changing Controls
http://pastebin.com/XtLvAEuH (download as mousemove.patch)
It is a complete hackjob, it works poorly (but it works!) and I will not be committing this to sandbox
if you do use it, /mouselook 1 will return normal behaviour
Linux instructions
1) download to sandbox directory
2) run 'patch -p0 -u < mousemove.patch' in sandbox directory
3) run 'make -C src install' in sandbox directory
It is a complete hackjob, it works poorly (but it works!) and I will not be committing this to sandbox
if you do use it, /mouselook 1 will return normal behaviour
Linux instructions
1) download to sandbox directory
2) run 'patch -p0 -u < mousemove.patch' in sandbox directory
3) run 'make -C src install' in sandbox directory
This is not a url, clicking it is pointless
Re: Changing Controls
I tried, literally all day to apply the patch. I did everything I could. Went on google to try to learn how to do it. Downloaded 4 programs that were supposed to do it for me and I tried simply imputing it places I thought it should go. All with no success. Can anyone help me out please?
-
- Support Team
- Posts: 2734
- Joined: January 13th, 2010, 12:42 pm
- Name: Timothy
- IRC Username: I use Steam
- Location: Looking over your shoulder...
- Contact:
Re: Changing Controls
Just to make sure, you used Hirato's instructions? Or are you not using Linux?

Want a user bar like this one? PM Leo!