Thursday, 24 April 2014

Working Processes: Finalising the Game - Adding the music

Instead of adding the music through the timeline properties, I instead done it through code.
This way, I would be able to adjust the volume of the music more easily as I feel that once I add the narration or sound effects, the music may be too loud to hear the rest.

The first thing I did was create import the video and give it a class name of soundTrack. With this I was able to add a SoundTransform for the volume and give the soundTrack a channel

Here is the code I used:

var letItGoShort:Sound = new soundTrack();
var trans:SoundTransform = new SoundTransform(0.5, 0);
var channel:SoundChannel;

 I then created a boolean called musicPlaying and set it to false

I then used the following script:

if(!musicPlaying){
    channel = letItGoShort.play(0, 1000 , trans);
    musicPlaying=true;
}


This script made it so that the music would only play if the boolean is set on false. By doing this I would avoid the music playing on top of itself once I revisit that frame.

The first 0 shows the start time, whilst the 1000 represents how many times the song will be repeated.

Working Processes: Finalising the Game - Editing the game from Supervisors feedback.

I managed to fix all of the things Daniel had mentioned in our tutorial from Yesterday.

The first thing I fixed was the back button.

At first, I thought it would be a good idea to merely go into the button, and change it's HIT state increasing the area of which the button can be clicked on. I added long rectangles on either side of the Flash and tested the game.

I realised that this would not work since the back button disappears if the users mouse is not at the bottom of the screen. Meaning that the additional hitstate would only be clickable once the users mouse is at the bottom.

In order to impliment the side back buttons which my supervisor stated would be a good idea. I created a new button and called the instance "backSide_btns". With this, instead of typing out a new function for this button or even copying and pasting the function from the previous button. I merely reused the exact same event listener to the new button and applied it to all the places accordingly.

back_btn.addEventListener(MouseEvent.CLICK,backtoMainListener);
backSide_btns.addEventListener(MouseEvent.CLICK,backtoMainListener);

The next part I modified was the pictures, I decreased the saturation of the picture frames so that they would suit the pastel colour look I was going for. I then traced over 2 of the portraits and coloured them in. I took a screen capture of this and sent it to my Supervisor Daniel so that he could see the results before I proceeded with the others.


He instantly replied and stated that they were looking much better and suiting the games appearance much more. Due to this I continued to transform the others.


Then I modified the inventory, instead of having it so that a message appeared stating inventory as the bottom. I changed it so that there would be a button at the bottom to indicate that there was something there. This way it would be much more noticeable for the users playing the game.

I then changed the code which affected the display of the inventory

if (mouseY <450) {
        menu_btn.visible=false;
        bottomBar.visible=false;
        inventory_btn.visible=true;
        if (currentFrameLabel!="viewMain") {
            back_btn.visible=false;
        }
}

So whenever the bottomBar (inventory) would disppear, the inventory_btn would appear and visa versa.

Finally, I went onto the colouring of the screen. Here are two screen captures of the difference in colours for the screen.

Before


After

I then went onto changing the appearance of the password on the note.

I rotated the curve of the "r" so that it was closer together and easier to distinguish from a "v".

Before
 After
Overall, I have very happy with the results obtained from my supervisors feedback!

Wednesday, 23 April 2014

Supervisor Tutorial 8: Inventory indication, back button additions, changes to pictures, and computer screen.

Today I had my file tutorial with my supervisor.
It was the first time he had seen my work since the prior to the Easter Holidays.

Daniel played through the game. To save time, I gave him tips on how to go about completing the game.

After he played through it, he suggested many things which I should change.

Daniel stated the following things:

Problem Solve
"Inventory at bottom" - displayed too fast Choose a different method to indicate inventory
Back button - does not feel natural Have alternative methods to go back (clicking on side of screen)
Change pictures from frames - too realistic Trace over them with the pen tool
Change colour of picture frames - doesn't fit with pastel theme Find appropriate colours
Screen's blue doesn't fit colour theme Find a pastel blue
The password r looks like a v Modify text


As well as the pictures in the picture frames looking too realistic in comparison to the game, Daniel also stated that three of the people in the picture frames are of celebrities as this is a bad thing as it takes you away from the experience. As this is the case, I -as mentioned above- will be tracing over those people and they will in turn be not only suit the rest of the games aesthetics but also won't resemble the celebrities they once did.

Daniel also stated that I should be careful with music choice. Once I showed him the music I had thought about using, he stated that he thought that the music suited the piece very well.

As I plan to finish this before Monday, as I would like to hand it in a day early [in case transport is bad], I will need to complete the fixes and add narration before Sunday ends.

Tuesday, 22 April 2014

Working Processes / Planning - Feedback from User Testing [5]

Today, I did user testing to see how long it would take others to complete the game. Upon doing so, it also helped me find another glitch.

The times were as follows:

28 minutes
18 minutes

The glitch was that when the user put on their glasses whilst already viewing the note, the note would not unblur and instead the user would have to close the note and open it up again.

This was because there was not an event listener looking over this.

To solve this issue, I added onto the classes check event listener so that the note would be included too.

Originally the note was not included in this, because the note was only accessible from one camera angle - "viewTable".

I added the following if statement:

if(currentFrameLabel=="viewTable"){
            desknoteZoom.gotoAndStop(1);
}


the code now looked like:

// ---------Item Checks---------
//Glasses On
stage.addEventListener(Event.ENTER_FRAME, glassesOnCheck);
function glassesOnCheck(event:Event) {
    if (!glassesOn) {
        notebookOpen.gotoAndStop(2);
        canMessageBox.gotoAndStop(2);
        canMessageBox.cutMsg_btn.visible=false;
    } else if (glassesOn){
        notebookOpen.gotoAndStop(1);
        canMessageBox.gotoAndStop(1);
        canMessageBox.cutMsg_btn.visible=true;
        if(currentFrameLabel=="viewTable"){
            desknoteZoom.gotoAndStop(1);
        }
    }
}


This fixed the glitch.

Planning: Voice Over Script

Here is my plan on the types of things I wish the narration to be like. For instance, when the user puts on the glasses, the narration would say "now I can see".

Other narration parts would involve the following:

Where am I? I need to get out of here
It's locked!
Oh
I've got my glasses
Now I can see
I can't read that without my glasses
This might come in handy
I need more light
Hmmm...
There that's better
A key..
I can't read this without my glasses
I need more light
Hmm, this receipt could come in handy
I should really know what I'm looking for before ordering something
Amnezol, what's that?
I can't reach that
That's out of my reach
Great
Causes Memory Loss
Hmm, I should try to fix this
What's that?
It worked!

At last!


The script will give the user clues on how to complete the game but will not feed the user the answers such as:

Maybe I should check the bin for a receipt

Monday, 21 April 2014

Working Processes: Finalising the Game - Easter Eggs

Easter was yesterday, so here's a post on the Easter Eggs I added to the game.

My Supervisor's (Daniel) logo is on the keyboard. This can be seen on the viewTable frame. The logo has replaced the Windows logo normally on the keyboards.


Daniel's logo is also placed on the screws of the shelf on the viewShelfBox frame.


Finally, when viewing the FLA file a hidden message will appear on the vending machine. This message will not be found whilst playing the game live.


Although these easter eggs were rather pointless, many of games nowadays have something hidden and I wanted to incorporate this in my game too. None of the easter eggs would be noticeable to the users unless they zoomed in really closely to the SWF and managed to de-compile the SWF to get the FLA file.

Sunday, 20 April 2014

Working Processes / Planning - Feedback from User Testing [4]

I have had several people play the game now, the main intention of which is to find out how long it takes them to complete the game. The results include of the results I've had:

12 minutes
14 minutes
7 minutes
13 minutes
14 minutes
7 minutes

Overall, the average time it has taken users to complete it is 11 minutes.

No other feedback has been given, on how to improve the game, from user testing this time. This is good as it means that the game is pretty fixed, however it can be bad as there is always room for improvement.