Using the Gamefroot Classic Pack to make your own platform games

Knowledgebase / Using the Gamefroot Classic Pack to make your own platform games

You can build your own platform games using the Gamefroot Classic Pack. It has all the characters, terrain, and scripted game objects that you could need! If you want to build on an existing platform game made with these assets, you can open the Gamefroot Classic Template.

1. Create a new game & get the Classic pack

To start, create a new blank game (File, New game). Then grab the Gamefroot Classic Pack from the Marketplace.

classic-pack

2. Drawing Terrain

Once you’ve added that pack to your game, select a terrain brush and start drawing terrain inside your level. If you don’t already have a Tile Map layer (or Terrain layer), then you’ll need to add one from the Layers panel (click on the + icon and select Tile Map), then select that Tile Map layer by clicking on it.

tilemap-layer

You can now select a terrain brush and start drawing terrain in your level.

terrain-brush2

3. Place the Player Character

The Player character is an animated game object that already has a script attached to it to program how the player character interacts with the game world, and how it should react when being controlled. The person playing the game can control the player character with the arrow keys on the keyboard.

Find the Player character and place him somewhere in your level (preferably on some terrain, or else he will fall!).

player-character

The default player character has spiky black hair and a red bandana — but you can replace this character with another one if you’d like. Near the end of this tutorial we will explain how to use one of the NPCs (non-player characters) as your player.

4. Adding interactive Game Objects

This template game comes with a bunch of interactive game objects you can use, like characters, teleporters, story points, moving tiles, and doors. These have been programmed to behave in certain ways. To view these, click on the Game objects tab in the sidebar (underneath the brush icon). To place them in your level, click on them, and then click inside your level.

prefabs

The game objects with lightning bolt icons already have behaviours programmed into them – these are called Prefabs (short for pre-fabricated game objects). For example the door is a prefab that has been programmed to open if the player walks up to it with a key.

5. Place a story point

Story points are game objects that are pre-programmed with a script that makes a message appear in game when the player walks into them. You can use story points as a way to give information to the player, or to tell a story.

Find a story point object, and place it in your level.

story-point

6. Play your game

play-button

To see how your game will work, press PLAY in the top-right corner.

game-play-1

7. Edit Properties of the Story Point (or any game object)

That story point message could do with some improvement! Different game objects will behave in different ways, and some of them will need you to tell them how to behave. The story point is already programmed to display a message in your game, but to customise that message you need to open the game object’s properties. To open its properties, right-click on the game object in your level, and select Edit Instance Properties (instance is another word for object).

pasted image 0 (7)

The properties window will pop up, and it will show you properties you can set for this game object. The properties you see will depend on the game object.

Type in a new message to show in your game, and then click Close to close the properties window.

storypoint-2

8. Place an End point

Continue to build your level, and then place an End point object where you want the game to finish.

endpoint

When the player walks into this object, they will be sent to the next level — so make sure you create another level! Click on the + button next to Level – 1 to create a new level.

addlevel

In your new level you can build more of your game, or you can use the Menu objects to create an End Game screen. The Replay object is a button that sends the player back to the first level to start over again.

end-screen

9. Place some NPCs

Back in Level 1, place a few NPCs (Non-player characters) throughout your game.

NPCs

Play your game to see how those characters interact with you.

10. Edit the NPCs properties

NPC-classic-AI

You can edit the properties of the NPC to change how the character moves and interacts with the player. Here’s how you can edit those properties to change how the NPC behaves.

11. Using other characters as the Player

You can use one of the NPCs as your player character. By default, the NPCs have the Classic Platform AI script attached to them, but you can attach the Classic Platform Player script to the NPC which will then make it into your player character.

npc-to-player

Note: If the script doesn’t attach to the character, make sure you have the right layer selected (scripts can only be attached to objects in the currently selected layer).

Remember to delete the old player character if you’ve done this, or you’ll have 2 player characters and some things may not work properly in your game.

12. Experiment and improve your game

Try placing a few different game objects into your level. There are a tonne of other exciting prefab game objects you can use to create interactive objects in your game. Have a look at the properties they have for you to change, and then play your game. You may notice that some things need to be tweaked, so go back to edit mode, make the changes, and then play again. What parts of your game were the most fun? What parts can you improve?

When you’re happy with your game, you can publish it to share it with the world!