

You can now play your game from the start. In the earlier klik products the Active Object was the only object that you could draw graphics for, assign movements to, give alterable values to and in general do fun stuff with at runtime. Probably all applications made in MMF2 have at least one active object. In the actions menu choose the option " Restart the application". The Active Object is the prime object in Multimedia Fusion. Move your mouse under the Storyboard Controls object, and click with the right mouse button. Choose the option " Is the timer equal to a certain value".Īnd in the following dialog, enter 10 seconds (you can drag the bar or type the number in). Click on New condition and in the New condition dialog box, right click on the Timer object.

You might guess that we are going to use the Timer object to do this. What we want to do is simple : display the high-score table for 10 seconds, and then, restart the game. As you can see, the list of events is empty. Click on the Event editor button in the tool bar. We now have to program the events of our little high-score frame. Personally I chose a Arial Bold font, size 20. Do not forget to change the font of the object by clicking on the "Text Options" tab in the property toolbar. In the property toolbar, you can now see all the properties of the object. Select the option " Insert" / " New object" in the main menu, and choose the Hi-score object. Position it properly so that it covers the entire white, play area. Locate the object ScreenHighScore in the library window and drag & drop it onto the frame. We are now going to drop some objects into the frame : click on the " 2" button to go to the Frame editor.įirst of all, we are going to drop a background object with a nice picture. You can immediately see that a new frame has been added to our application. The storyboard editor is the place where you can have a global view on your application : it shows all the frames one after the other.

Click on the Storyboard Editor icon in the tool bar. You remember, the very first editor that we encountered? Well this is it. To do so, we need to display the Storyboard editor. Next frame? But there is no next frame yet! Well, we are going to create a new frame with a high score table. You certainly understand that when the number of lives reaches zero, Clickteam Fusion 2.5 will switch automatically to the next frame. Now the action : right click under the Storyboard controls object, and choose the option Next Frame. This opens the expression editor : just click on OK, we want to compare to zero. Choose the option " Compare to player's number of lives". This can be done very simply : click on New condition and in the New condition dialog, right click on the Player 1 object. One final thing to do to put some finishing touches on our game : detect when the number of lives equals zero, and when it is, end the game.
