Page 2 of 2
Re: Coding Help
Posted: July 3rd, 2010, 8:36 am
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.

You can just package it as a zip

Tutorial is on the wiki
Also, I've done some cubescripting tut's as has Leo and Venima

Re: Coding Help
Posted: July 3rd, 2010, 8:59 am
by PizzaLover101
So, how do i make a random song list?
Re: Coding Help
Posted: July 3rd, 2010, 9:20 am
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.

You can just package it as a zip

Tutorial is on the wiki

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?
Re: Coding Help
Posted: July 3rd, 2010, 9:28 am
by PizzaLover101
.........music help please?
Re: Coding Help
Posted: July 3rd, 2010, 9:50 am
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
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.......
Re: Coding Help
Posted: July 3rd, 2010, 9:54 am
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
Re: Coding Help
Posted: July 3rd, 2010, 12:41 pm
by PizzaLover101
ok, I'll try it out, thanks