I've finally finished the sound and music part for my game. There was a part where I did my own trial and errors with the coding as I couldn't find a tutorial for it. It is the onion's sound. Initially, I added the code into the scene, where the scene will play the sound every 7 seconds or so. But I realised it will not make sense having the onion's sound still playing when they are not on the screen after being stomped by Bawang Putih. So, I moved the code into the actor instead. The onion's event tab. First, the codes that I used was these :
All the above 3 were my trial and error codes. They didn't work, so I made the code simpler, which ends up being the one that works :
The channels in the code are like sound groups, so I can add in sounds to certain channels and those sounds will be in the same group.
Moving on, I added sounds to be played in sequence during my still images scenes, the quest pages and end pages.
I just have to set it to play at certain seconds, so it will play after one another :
I have to code these in the scene's event tab.
When I tested exporting to swf, Stencyl wouldn't allow me to export it due to some incompatible sounds format. It is really a hassle as Stencyl does not have the feature which allows me to see which is the sound that is incompatible. The only way to solve this is to delete one sound after another till it is able to export to swf, then only I will know which sound is causing the problem. After finding that incompatible sound, I have to convert it to this format :
After having that done, I tried exporting again, but it still gives me the same error. Stencyl also doesn't let you know how many sound is incompatible. So, in the end I found around 5 sounds that I have to reconvert by going through the delete and export process. It does took up most of my time, I will have to take note of the sound format in the future.
Other than that, I've changed all the keyboard features to touch features. (I hope I didn't miss out any of the keyboard features)
Instead of "touched" I use "is touching", so the animation will be shown.
And I have also done the game icon and splash screen. Stencyl noted in their programme that the icon must be at least 144px x 144px while the splashscreen for ipad must be at least 1536px x 2048px.
Here's my icon design and the splashscreen.
I don't know how the transition will be like from splashscreen to game menu, but I wanted the splashscreen to have the game menu's background, to show the starting scene.
Here's the result:
Gameplay 1 :
Gameplay 2:
Wednesday, 4 December 2013
0 comments: