Arrange Numbers

4

Index

Attached Files

The following files have been attached to this tutorial:

.capx

arrange-numbers.capx

Download now 521.51 KB

Stats

4,089 visits, 7,162 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 22 Aug, 2015. Last updated 19 Feb, 2019

In this tutorial we will learn how to arrange numbers from 1 to 15. What really happen is at start of our game all the numbers will be disorderly therefore player has to arrange them as 1, 2, 3, and so on. Now we start with opening Construct 2 and create new projects. When you run game screen will look like below:

1. Create new project and call it arrange numbers

2. Set windows size to 640, 960

3. Set layer size to 800, 1200

4. Create 2 more layers

5. Name layers as Background, Board and Guide

6. Create sprite and set size to 640, 960, name it Guide, Place this sprite on guide layer, set Opacity to about 25, Set Position @ 400, 600

7. Create Text and name it txtSort, add text as heading Sort 1 to 15 numbers, now lock this layer.

8. For Board layout we will need 2 sprites 1 name it as OpenSpace_Sprite, 2 name it as Number_Sprite. Layer Board is done.

9. Set position of Number_Sprite @ 208, 394 and OpenSpace_Sprite outside of layer Board. Number_Sprite also needs ready Instance Variable Boolean

Layer Board should look like below

Now we must insert

1. Audio

2. Keyboard

3. Mouse

4. Touch

5. Function

6. Array

Now name our Array as Number_RandomArray, so we will remember name of array when we come to compare it.

For Number sprites you can use mine or create your own

  • 0 Comments

Want to leave a comment? Login or Register an account!