Using the Trial Period Object

3.2
Your rating: None Average: 3.2 (5 votes)
Difficulty Level: 
Beginner
Topic: 
Game Design

This tutorial will show you how to:
1. Use the trial period object extension (only in MMF2 Dev)

This extension is so easy to use. Some of the functions seem complicated, but they arn't...trust me.

For the tutorial, we are going to make a simple clicking game. You can skip this bit if you have a game that you want to have a trial on.

The game:
1. Insert an active object.
2.
a. Make it look like a button.
b. Make it have two directions (right and left)
c. Make the first direction in the "Not Clicked" state (right directon).
d. Make the second direcion in a "Clicked" state (left direction).
3. Name the button "Button".
4. Insert a score object.
5. Insert a button and set the text to stop (just so you stop the game when you want to). Then name it "Stop".
6. Go to the events editor and insert a new group called "Game".
7. Do the following events in the Game group.
+ User click with left button on "Button"
- Set the buttons direction to left
- Add 1 to score
This will make the button look like it has been clicked.

+ Repeat while left mouse-key is pressed (negate)
- Set the buttons direction to right
This will make the button go back up when you are not pressing it.

+ Button "Stop" is clicked
- Next Frame

8. Insert a new frame.
9. In that new frame, insert a highscores object.
That's the game done :D

Now for the trial object:
1. Insert the trial object into the game frame and follow the next instructions to configure it.
2. Set the product ID to whatever you want. This should be unique. If you have two identical product ID's, the expiree date will be the same whether it is yours or someone elses program.
3. Then set the Expiration period. This will set the amount of days that you are allowed to trial the game.
4. Press OK and switch over to the event editor.
5. Create a new group called "Trial Period Object".
6. Insert the following events into the Trial Period Object group:
+ Is Trial Period Expired?
- Display Message
When the trial period has expired a message will display.

And then your done! I would encourage you to explore the objects events, actions and expressions to get the most out of the object.

You can download the example file here.

Comments

3kliksphilip's picture

Just out of interest, how many people here actually have MMF2 Dev?

Game_Master's picture

Not sure....? Be nice to know!

Groudon128's picture

I don't have dev, I just have mmf2 standard.

Wiiman's picture

me too

KetchupMaster's picture

I have MMF2 Dev :)

Watermelon876's picture

Standard

Eliyahu's picture

I have standard.

Wasteware's picture

Dev version here. By far THE way to go!! Plus with all the extra libs its GREAT.

hairybiker's picture

i have devoloper and this artical looks very good

dalebuc0i's picture

tv on line profitable Abscissa penis enlargement merciless inbred Fashion Jewelry profess Safeway Mobile Porn misprint huygens lingerie mitochondrial sarcolysis Dating Cutthroat loanword

andrewybs's picture

XtendRx Brazilian lumbocostal Cialis Daily mythology cytogeneticist ViagRx lateralization prodigality Viagra Super Active Dogmatizer bagger Mr.Long Astronaut manageable