Monday 18 June 2012

Internship: Log/Activity 18/6/2012

       The game development is almost come to the end. All the basic functions and movements were already done for examples like jelly movement, background music, score board, level design  and so on were already completed. We are now testing and looking for bugs. One of the bug is about the replay function. When the player intend to replay the previous level in order to achieve higher score, the record of the current level will be deleted. This means the player has to play again the levels start from the replay level.

Sunday 17 June 2012

Internship: Log/Activity 15/6/2012


             Today I continued by yesterday work, solving the  problem of score board. After trying a few ways to display scores in array, finally I found the right way to do it. The previous problem why the score cant be displayed was due to some logic errors. I had set the condition at  the wrong way. I called the viewScore function  when it reached at the last level, but actually it supposed been called in the next frame after the last level. In order to display do so, I set a new game mode called finish. When it reached the last level and the level is completed, I set the game mode to "finish". Once the OK button have been clicked, the function will just be call.  

Part of the source codes



The score board with recorded scores

ternship: Log/Activity 14/6/2012


          After I done creating the mute button and the rating part, I proceeded to help my coursemate on creating the score board at the end of the game. My coursemate planned to use sharedObject to store the high score achieved into a temporary array. At the end, all the high scores will be displayed at the score board by reading out from the array. My coursemate had successfully stored the score in a temporary array called tempArray. However, the score cannot be displayed at the score board. We were looking for the way to read the tempArray and displayed it in the score board instead of tracing the array in the output screen.


The content of tempArray using trace() function


The high score board

Wednesday 13 June 2012

Internship: Log/Activity 13/6/2012

          Today I continued my previous work on creating the sound button. Finally, I found one tutorial in Youtube on how to create a mute button. This tutorial really helped me a lot. First, I created a speaker like symbol as button. Then, some codes are written to set the condition for playing the background music. After that an on off characters are created as movie clip to indicated the sound status.

switch off the music

switch on the music

              After I had done the mute button, I turned to do the dialog box and high score. I had discussed with other team members about the scoring method we used. We decided to record the high score in each level instead of accumulate the score from the start to the end  of level. The score will be calculated based on  the amount of items collected. Stars rating will be displayed when the level is completed. 

The dialog box

 

Internship: Log/Activity 12/6/2012

            Today I had spent whole day time in making a sound button.  I had tried a few ways to define the sound button. At first, I created a symbol of sound button. The first two frames for mouse up and mouse over set as sound on, while the frames for mouse down and hit set as sound off. The button was worked but it displayed the sound on symbol even though the sound was off. Then I found out another way to do it. I  defined two buttons, one was on button and another was off button. It seem a bit weird with the design. Normally the sound button should be only one button.

The sound on and off button

Monday 11 June 2012

Internship: Log/Activity 11/6/2012

            Early in the Monday morning, I officially gave up to do the moving floor. I turned to do the replay button with my another coursemate. When everything is almost come to the end, more and  more problems are coming out. The button was only work outside of the game level. Furthermore,  we also don't know how can we restart the current key frame. The only thing that able to reset the lives and the position of the jelly.
replay button

             I had tried to link the replay button to the map of the current level. However, the scores of the previous level was reset to zero. So, I found out the use of flash.net.sharedObject. I was not sure whether this method was really work, but I had successfully restore the score of the previous level. 

Internship: Log/Activity 8/6/2012

            Today, I continued to solve the problem that we faced yesterday. I found out that the level buttons in the map also not functioning besides of the start button. However, I still can't find the solution to solve this problem.
           Without wasting my time, I turned to do coding to add on the moving floor into the game level. In my opinion, the game level was look quite plain and less challenging. So, we have to add more challenges. I tried to use loop to make the floor moving left and right. However, it was not working. I also tried to find solution online but the codes were hard to understand. I had figured out my own idea but it was failed. My coursemate Hwee Boon, she was tried to use the idea of the moving enemy of the sample code. It was just partially worked. The reason why I said so because the jelly was not able to stand on the moving floor. Haiz~ another problem to solve.
The cupcake at the left side was the moving floor

Internship: Log/ Activity 7/6/2012

             Since I had finished my work yesterday, so I tried to turn the game to a mobile game. I had changed the mouse event listener to the touch event listener and published it as Flash Lite 4. The game was debugged in Adobe Device Central CS5 which simplifies the mobile authoring workflow and allows developers to preview designs and test content on the desktop before loading it on the mobile devices for final testing. We were faced the problem that some of the buttons were not functioning. However, they were working when debug using flash player 10. My coursemate and I were looking for the cause for the whole afternoon. The most possible cause is because they were using the same basic button at different key frames but it was  hard if we used different buttons at each key frame. There will be a lot of buttons to define. So, we had to think of other possible solutions as well.
Screen capture of the simulated device 

Wednesday 6 June 2012

Internship: Log/ Activity 6/6/2012

          As usual, I  continued the yesterday unfinished work in the morning. I had drawn all the cookies for cookies land. The use of color of the cookies were almost the same. I was wondering that should I make it more colorful or just the normal cookies. But at last, I still chose the normal cookies with different shapes. For examples, cookies with chocolate chips and nuts, star shape's cookies and so on. The most special one was the cookies with rabbit shape. Drawing the cookies for the whole morning make me felt like wanna to have some cookies~~ hahaha~~ yummy~~
Cute Cookies

            Besides that, I also help my another coursemate to draw the floor for the second level of cupcake land because the floor that she thought that the floor she had drew previously was no match with the floor in the first level. So, I created a new cupcake as floor for her. 
cupcake

Internship: Log/Activity 5/6/2012

         Today I continued combining the game levels. I had almost finished combining all the levels, only left the cookies land. Although almost all the level have been there, we still have to rearrange the game level and add on the collective items for each level. However, those items haven't been drawn use Illustrator. My coursemate, Hwee Boon had started sketching the items in paper yesterday. In the afternoon, she had finished drew out all the items and I helped her draw out part of the items. I just be able to finish the items for ice cream land.
Ice Creams



Monday 4 June 2012

Internship: Log/Activity 4/6/2012

           I continued my previous work for today. Currently, I had combined seven levels of the game.  There were level 2-cookies land, level 3&4-marshmallow land, level 7&8- candy land, level 9- ice cream land. After combined the level, I had to adjust the position of the level as some of the mouse click  position were incorrect. For example, the jelly swing below the stick.

The jelly swing below the stick




Internship: Log/Activity 1/6/2012

           First day of June, Happy Gawai! Today will be holiday if I am at Kuching, haiz~ Anyway, I continued my work combining the game level. Today is not really a lucky day for me because I accidentally deleted one of the frame while I combining the works. This incident make me very impatient of the work. Some more, my adobe flash was lagging when I tried to re-do the work. However, I done combined the game levels for today.


The screen capture of my work

Internship: Log/Activity 31/5/2012

    Today is the last day of May. June is coming, indicated that around one month left for internship. Since I had already solved the jelly movement problems, I started to combine all the works. My coursemate, Cj had done the main menu and  story design. I had combined the first level with the menu. She also started to design the game level. She passed the design to me every time she finished a level. Besides of combining the works, I also helped to adjust and re-arrange the design to fit the jelly's abilities. For example, some of the objects were placing too high where jelly was unable to jump over it. It sounded like testing the game level.

Example of level.