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.

scripting 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
mstetsen
Member
Member
Posts: 6
Joined: November 6th, 2010, 7:23 pm
Name: stetsen

scripting help

Post by mstetsen »

i want to learn how to make a game with sandbox but i don't know the first thing about scripting. how do i get started and what are some basic commands i can use in sandbox?
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: scripting help

Post by PizzaLover101 »

Look on the wiki, starting there is the best idea
OR
You could look at other scripts and see what you can pick out like i did :)
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/
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: scripting help

Post by chocolatepie33 »

basic commands:

Code: Select all

level_trigger_# = [showgui (NAME)] 
newgui (NAME) [
guitext "Hi."
guibar
guibutton "Hi." [cleargui]
] 
Just a quick little bit of code involving a character (level_trigger_#), which creates a pop-up menu (showgui/newgui) with text (guitext) and the option to say Hi back (guibutton), when you go near him.

I've been working on a big, bad super scripting guide on the wiki, if you want check that out.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
mstetsen
Member
Member
Posts: 6
Joined: November 6th, 2010, 7:23 pm
Name: stetsen

Re: scripting help

Post by mstetsen »

thanks guys :D
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: scripting help

Post by chocolatepie33 »

You're welcome.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
mstetsen
Member
Member
Posts: 6
Joined: November 6th, 2010, 7:23 pm
Name: stetsen

Re: scripting help

Post by mstetsen »

i still don't get it :|
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: scripting help

Post by chocolatepie33 »

seriously? please make up you're mind, do you understand
mstetsen wrote:thanks guys :D
or do you not?
mstetsen wrote:i still don't get it :|
Also, a bit more specific, what don't you get? And try not to say everything.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
mstetsen
Member
Member
Posts: 6
Joined: November 6th, 2010, 7:23 pm
Name: stetsen

Re: scripting help

Post by mstetsen »

where do i type it? what does it do? and what els can i do?...sorry im a total noob :?
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: scripting help

Post by chocolatepie33 »

like I said, look at my scripting guide, it's still a work in progress, but I think I've covered most things, and you put the code in a .cfg file. You can edit the .cfg by hitting F6 in edit mode when you're inside Sandbox, or go to mystuff/packages/base and you can either create one there or there should be one you can edit already there.

Mah scripting guide: http://sandboxgamemaker.com/wiki/index. ... ript_guide
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked