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.

Coding 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.
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: Coding Help

Post by arcones »

I understand your problem AName. Before I learned coding, I was stuck in an RPG b/c I didn't know how. So, I decided to learn and work around what I still hadn't understood yet.

About the exe. thing. :D You can just package it as a zip ;) Tutorial is on the wiki :P

Also, I've done some cubescripting tut's as has Leo and Venima :)
Image
Want a user bar like this one? PM Leo!
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: Coding Help

Post by PizzaLover101 »

So, how do i make a random song list?
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/
AName
Member
Member
Posts: 14
Joined: June 23rd, 2010, 9:03 am
Name: Andrew

Re: Coding Help

Post by AName »

So, I decided to learn and work around what I still hadn't understood yet.
Can't do that with coding. :/
About the exe. thing. :D You can just package it as a zip ;) Tutorial is on the wiki :P
No offense at all, but zip's really... aren't good enough. Packaging your game as a zip file is like what I used to do when I was 10 years old - there used to be file size limits on every free web server, and thus I would split the contents of my game into various parts and the person who would play my game would have to download all the parts, download a bat file, and then run it to combine the parts.

viewtopic.php?f=15&t=1223&p=10017&hilit=exe#p10017
viewtopic.php?f=15&t=574&p=2618&hilit=exe#p2618
viewtopic.php?f=15&t=393&p=1947&hilit=exe#p1947

I've seen on these forums that making your game into an executable is possible with sandbox, however it would have to be done with an installer and thus it's not exactly true - what most people want is a single application if possible. Also, wouldn't this method be very, very easy to reverse engineer, and couldn't people also easily steal your media (models, textures, music, sounds, etc.) files?
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: Coding Help

Post by PizzaLover101 »

.........music help please?
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/
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: Coding Help

Post by arcones »

@Pizza you want songs to play in random order? I guess you could have the songs play one after another... The Village RPG has some coding about playing a song.

@AName, Until you have a really big game, there's no need for a .exe file! Also, a zip file will be fine. It can be loaded right to the Sandbox Forum too. That's my point. Until you have a demo at least of your game, the zip file will hold most of the stuff anyways :P

And about the copyright issue, you can just use a copyright creator, preferably Creative Commons. (Unless you really don't want people to get your stuff)
AName wrote:I've seen on these forums that making your game into an executable is possible with sandbox, however it would have to be done with an installer and thus it's not exactly true - what most people want is a single application if possible.
The only way you could ever create a game executable with Sandbox is if you had the installer. No game works without one. Also, in the last linked topic, all the answers have some program as the main .exe creator and/or installer. Sandbox doesn't do that on it's own. But to be honest, most people use other programs to make their games downloadable.......
Image
Want a user bar like this one? PM Leo!
AName
Member
Member
Posts: 14
Joined: June 23rd, 2010, 9:03 am
Name: Andrew

Re: Coding Help

Post by AName »

http://sandboxgamemaker.com/platinumart ... html#music
That's how you play songs - as far as randomizing, the only thing I can help you with is how it would be coded in general... no syntax of any sort. Unless you have like 2-3 songs (which I'm assuming you won't, you probably have more if it needs to be random), the best way would be to have an array where each slot in the array is associated with the name of one song. Then, in the song playing script, instead of doing "song1.mp3", you would put (translated into cubescript, of course) myarray[randomnumberfunction()].

To clarify:
- An array is a set of data (unlike a variable, which holds only 1 piece of data), and all of that data is the same type (in this case it would be strings since the song name requires strings).
- In your coding you would have to (probably) declare the array first, then assign every song you add to your game to a different number in the array (e.g. myarray[1] = "song1.mp3" *move to next line of code* myarray[2] = "thisismysong2.mp3", etc. etc.)

Links for Cubescript:
http://sandboxgamemaker.com/wiki/index. ... Cubescript
http://cube.wikispaces.com/Cubescript+Tutorial
http://www.google.com
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: Coding Help

Post by PizzaLover101 »

ok, I'll try it out, thanks
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