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.

Adding buttons to the game

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
lzilberm
Member
Member
Posts: 31
Joined: January 19th, 2012, 12:54 pm
Name: lee
IRC Username: zilber

Adding buttons to the game

Post by lzilberm »

Hey guys,

I was wondering if anyone knows how I can create a custom little button on the game screen, that does a custom function that I would normally employ using the T button. This way, I wouldn't have to type it out every time. Thank you soooo much guys. :-D

~~lzilberm
arcones
Support Team
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: Adding buttons to the game

Post by arcones »

What you're talking about is a key bind. Essentially you "bind" a certain function to a key and every time you press that key it executes the function.

Binds are a little complicated as most of the keys already have binds, but there are ways to get around those.
Image
Want a user bar like this one? PM Leo!
lzilberm
Member
Member
Posts: 31
Joined: January 19th, 2012, 12:54 pm
Name: lee
IRC Username: zilber

Re: Adding buttons to the game

Post by lzilberm »

Would I have to assign it to a key or could I actually create a visual button?
arcones
Support Team
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: Adding buttons to the game

Post by arcones »

You could assign it to a button. Essentially it would be the same, it would just have to be added onto one of the menus (your custom one probably, if you're creating a game).
Image
Want a user bar like this one? PM Leo!
lzilberm
Member
Member
Posts: 31
Joined: January 19th, 2012, 12:54 pm
Name: lee
IRC Username: zilber

Re: Adding buttons to the game

Post by lzilberm »

Unfortunately I have no idea which files in which folders I need to manipulate. If anyone could take me through the following example it would be awesome.

I do the following....
Press "T"....then enter "/mouselook_0" <---this makes it so my mouse replaces the arrow keys to maneuver around the game.
So...how could I bind this command to a letter...or a button?

~~lzilberm
arcones
Support Team
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: Adding buttons to the game

Post by arcones »

This could be very close to what you're looking for: viewtopic.php?t=3010
Image
Want a user bar like this one? PM Leo!
lzilberm
Member
Member
Posts: 31
Joined: January 19th, 2012, 12:54 pm
Name: lee
IRC Username: zilber

Re: Adding buttons to the game

Post by lzilberm »

Yay I got it to work! Thanks for the help everyone!

~~lzilberm
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Adding buttons to the game

Post by chocolatepie33 »

trying to use /mouselook 0 now, I think it'd be cool if we could use the mouse like some sort of virtual joystick, where you keep going if you hold it in a direction.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked