Gw Temp


Tutorial - 'The Gfactory Tutorial: Making a Sidescroller' by GotMilkXtreme2

An item about Clickteam posted on


This is a nice long tutorial explaining how to make a sidescroller in The Games Factory.


The Ultimate Gfactory (Klik Intro) Tutorial
For the Complete Beginner
By GotmilkXtreme2

Gfactory (The games factory(klik)) is probably the easiest 2d side scroller/minigame/etc... maker I have found yet that is free. It's a lot easier than its 2d competition "game maker" but that's controversial.

You can download Gfactory at the Clickteam website at:

Unfortunately they only include a 30-day trial, but I am working on putting up the unregistered version that I have that doesn’t have a time limit to it for download.

On with the game making! In this tutorial you will make and learn:

- A simple run, jump and shoot side scroller
-- everyone’s problem, how to NOT get your character to fall through that platform
-- how to shoot little bullets and stuff


Open Gfactory

Click "File>>>New" to create a new project

Right click your projects first level select and click "edit this level>>>Level editor" Here is the level editor, where you will place all the objects in your games. Click the "Create New Object" button towards the top of the screen. First we'll need to create a backdrop object so that the player has something to walk on, so click on the "create backdrop object" button (labelled with the blue). Select a color, and for now keep the object solid. Place the backdrop object into the level editor area. Resize it by clicking and dragging. Now right click on the backdrop object and select "obstacle>>>yes"

Now for the player

Once again click the "Create New Object" button towards the top of the screen.

This time click the "Create Active Object" button (labelled with the running stickman picture)

Welcome to the active object menu, where the animation work for your characters, is done; the boxes toward the bottom of the menu are animation boxes, you can draw your own pictures within the animation boxes, OR you can take the more reliable option, and import picture and animation files. The slider, which should be set to default at 50, indicates the animation speed, which can lead to frustration if your trying to manipulate the speed by looking at the character when the game isn't running.

Anyway, double click the blank picture with a 1 below it. This will bring you to the little paint program that's integrated into gfactory. By default it's set to 32x32 which is fully editable (One time I made a game where I had to have an active object of 3000x3000). To get a better view of the dinky 32x32 active object click the "x4" button to the left of the paint editor. All we're going to make right now is a circle so click the circle tool, click where you want the circles center to be, and then drag. After, click the ok button for the paint program and then the menu again.

Place the circle in the play area, just above the backdrop object. If you place it too low to the backdrop object, it could end up getting stuck...rrr...something like that I guess.

Now, right click the active circle object and click "movement>>>select movement". A magical menu should appear with different ways to get your object into the game. Select Platform with the pitfall stickman picture. This is where you are able to edit movement of your side-scrolling character. Answer questions here like "Is he a character that can jump really, really high?" or "is he a character that can run really, really fast?"; hell, you can even edit whether he slows down or speeds up fast or slowly. See how cool gfactory is now? You can test stuff out from this menu soon enough, but first let us get this guy on that platform, shall we?

Up in the right hand corner of the screen is a little cinematic-like button called the "step through" button. After you've made sure that your active object is over the backdrop object, click it. Your active object should fall and immediately when the first pixel of your active object circle touches the surface of the backdrop object, a screen should come up saying "Collides with the background". THAT my friends is the collision condition you need for your active object character not to fall through your damn backdrop object. This is a piece of the event editor where you get to control the conditions and actions of interactions between objects and things. Now click on the active object circle and select "movement>>>stop".

After this, you'll want to stop and rewind your game and play it using the traditional "play" button up next to the "step through" button.

You can also use the "step through" button to easily create new conditions. For example, if you want the character to perform an animation when you push a button, done in an instant! But this CAN work against you; if you miss and press the X button instead of doing the action in the event editor box you won't be able to make the condition in the step through mode again.

The easier and more practical way of making a platform would be to make another active object and import a picture into the animation pics in the active object animation menu.

Now, to make the character shoot an object. Create another active object and draw something like another circle but don't make it too similar to the main character active object circle. This will be our shooting star.

Once again, click the "step through" button in the right hand corner of the program. This time when your grounded, press the "spacebar". The event editor screen should come up. Click the Main Active object circle and click "shoot and object...". Another screen should come up like this

Select the shooting star active object, or the active object you created earlier to be shot.

For now click the "use direction of hero" button and put the speed to about 50.

Play the game and you have a character that can walk and shoot with the spacebar. You can turn the shooting star active object invisible by creating a condition in the event editor, click on the "visibility>>>make object invisible". Also make sure to check out "File>>>General Game Setup" and "File>>>Game Setup".

I'm obviously leaving alot of stuff out but a great way (the way that I learned how to use the editor) to learn how to use the editor is to try out the tutorial sample games and learn from them.

At the moment (7/10/04) I am working on uploading a .gam file that has a lot of fully animated characters so it will be easier for beginners to get started and become familiar with the gfactory environment.