Category Archives: Snippet

A small tutorial showing how an effect/function can be achieved.

RPG Style Health Bar

Quick and simple example of a RPG style health bar.  You know the type – max health goes up but the health bar always stays the same length.  For this example the health bar will follow a box that has the platform behaviour.

See the example in action HERE

Download the Construct 2 CAPX HERE

If you like the example please leave a comment or rating it only takes a few seconds.

**EDIT – Seems the textboxes that allow you to change the values in the example are broken, they do work when previewing from Construct 2 though.

Advertisements

Snippet – Health Bar Using Tiled Background

Just a quick example of how to create a Zelda like heart health bar using a Tiled Background.  The example is un-commented but is really self explanatory.  Just use Left Mouse Button to subtract from health and the Right Mouse Button to add to health.

 

DOWNLOAD

Beginner Example – Counter

A new tutorial, a little late, but better late than never.  This time it’s a simple counter that counts up or down in milliseconds, “so what” I hear you say, but one that actually displays in hours/minutes/seconds.  This example is un-commented as I think it’s mostly self explanatory.  The example covers the following:

  1. Global Variables
  2. Math Functions
  3. Appending Strings
  4. Edit Box
  5. Buttons

The example is aimed at a  beginner in construct as was created in Construct 0.99.97.

DOWNLOAD

SpriteFont Plugin Tutorial

Another quick tutorial.  This time for Lucid’s wonderful, but often miss-understood SpriteFont plugin.  The tutorial covers most of the plugins features and is aimed at anyone who hasn’t used or has had problems with SpriteFont in the past.

You’ll need Lucid’s SpriteFont plugin – DOWNLOAD

Here is the forum post on the Construct Forums – VIEW

And last but not least the tutorial itself – DOWNLOAD

Basic INI File Example

Another new tutorial for you guys.

This example shows how you can use an INI file to store your games information.  If you are not familiar with INI files there is a quick explanation in the comments in the cap.  The example covers the following:

  1. INI Object – Writing & Reading values (also INI file structure)
  2. Global Variables
  3. Changing a Sprites colour
  4. Edit Boxes
  5. Button Objects
  6. Dragging Sprites
  7. Rotating Sprites

The example is aimed at a beginner in construct and was made in Construct 0.99.97.

DOWNLOAD

“Auto-tiling” Level Editor

Hey everyone!  Another new tutorial for you all.

This example is a simple level editor (no saving yet) that uses “Bitwise” numbers to automatically tile the level for you.  That means you just concentrate on placing  basic  blocks in the level editor and the editor will tile it correctly.

The example is based on this brilliant forum post on TigSource by Salt.  There is also an expanded version on Salt’s blog too that can be found here.  Before opening the example I suggest reading through the post as Salt explains how this works 1000 times better than I ever could.  This method is the same as how I was automatically tiling  the Cellular Automata levels in Conway.

This example is suitable for beginners and more advanced users and covers the following:

  1. “For Each” Loops
  2. Keyboard Controls
  3. Layer Visibility
  4. Snapping a “sprite cursor” to a grid
  5. Placing Objects
  6. Checking for collisions at offsets
  7. Private Variable
  8. Trigger Once

More information and the download link can be found in the full post. Read the rest of this entry

Basic Cave/Dungeon Generator

New tutorial for everyone.  This time we’re going to make a simple cave/dungeon generator. It is based on this example by subliminal on the TigSource forums.  Basically the generator picks a random direction either left/right/up/down every tick and creates a “floor” at the current position.  The example covers the following:

  1. Loops
  2. Random Numbers
  3. “For Each” loop
  4. Placing tiles
  5. Checking overlapping objects
  6. Zooming the Layout
  7. Sub Events
  8. Keyboard Controls

The tutorial is aimed at beginners and more advanced Construct users and was made with the current stable version of Construct 0.99.97.  The download link and some screenshots can be found in the full post. Read the rest of this entry

A Few Platform Snippets

Another cross-post from my games blog.  This time some useful example snippets for your  platform game.

Ceiling GrabbingDOWNLOAD

Character SwitchingDOWNLOAD

Wall slide and wall jumpingDOWNLOAD

Object PushingDOWNLOAD

Hope it helps you out.

Using the Image Manipulator for level loading

This example shows how you can use images and the Image Manipulator to load a level in an Arkanoid clone.  The example covers the following:

  1. Loops
  2. Using the Image Manipulator
  3. Private Variables
  4. Ball Behaviour
  5. 8 Directional Behaviour
  6. “For Each” Event

The example is suitable for beginners and more experienced users.  It is also only half a game.  There is no lives system, scoring system or a way to load a new level.  For practice you can add all this to the game and feel free to send me the results.  More information, screenshots and the download link can be found in the full post. Read the rest of this entry

Beginner Example – Basic Scoring

Here is a quick example of basic scoring in Construct.  It covers the following areas.

  1. Basics of Global Variables
  2. Objects being clicked with the mouse
  3. Displaying the score
  4. Zeropadding a score e.g – 500 would be displayed as 00000500
  5. Making a score count upwards to the current score
  6. Checking the value of a global variable

DOWNLOAD

The example is aimed at a beginner in Construct and was created using 0.99.97.

%d bloggers like this: