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.

How do you make a button & Custom Texture Help

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
User avatar
Fluffinster
Member
Member
Posts: 18
Joined: December 1st, 2010, 2:41 pm
Name: Tony
Location: USA, Florida
Contact:

How do you make a button & Custom Texture Help

Post by Fluffinster »

Ok, first How do you make a button(with scripting) that say makes something disappear, open, or go into noclip(you get the basic idea). Because I want to have you talk to someone and one of the guibuttons opens it ect.
Example:

Code: Select all

newgui example
                           guitext "Hi" chat
                           guibar
                           guibutton "Hi, Can you open this door" [whatever I would need to put if possible}
And also I made custom textures and put them in a folder made the package.cfg for it and went and put it in the default_map_settings.cfg(or whatever it is called) but when I go to use them they are not there(I put a jpeg(jpg) image for a fence and one for a door)
Here is what the package.cfg says if you need it

Code: Select all

// tony

//texture 0 "mytextures/door1.jpg"
//texture 0 "mytextures/fence1.jpg"
If you need anymore info tell me Thanks if you help :)
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: How do you make a button & Custom Texture Help

Post by chocolatepie33 »

okay, your code should look like this:

Code: Select all

newgui example [
                           guitext "Hi" chat
                           guibar
                           guibutton "Hi, Can you open this door" [trigger 10 1]
trigger 10 is a door opening, the "1" is a boolean value (which is only true/false), having a true value makes the door open.

your textures should be like this:

Code: Select all

setshader stdworld 
texture 0 "mytextures/door1.jpg"

setshader stdworld
texture 0 "mytextures/fence.jpg"
It helps to know anything after the // in a .cfg file is cancelled out (as it's taken as a comment.)

some more on cubescript:
http://sandboxgamemaker.com/wiki/index. ... Cubescript
viewtopic.php?f=24&t=1317
viewtopic.php?f=24&t=1532
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
User avatar
Fluffinster
Member
Member
Posts: 18
Joined: December 1st, 2010, 2:41 pm
Name: Tony
Location: USA, Florida
Contact:

Re: How do you make a button & Custom Texture Help

Post by Fluffinster »

Thanks, but one thing so to do a door I would put its trigger type to 10 and this would open it? Or do I need to script a level_trigger for the door too?
Icy Map--Image
User avatar
PizzaLover101
Member
Member
Posts: 1751
Joined: October 23rd, 2009, 1:33 pm
Name: NAME
IRC Username: DaItsicle
Location: By a computer
Contact:

Re: How do you make a button & Custom Texture Help

Post by PizzaLover101 »

Nope, just select a door model.
Project 1: Da Chest Collector [TBD]
Project 2: Tis a secret [End of summer] announcement June 22 2011
Project 3: An even bigger secret!

http://pizzagametime.tk/
http://forums.pizzagametime.tk/
Locked