Very Simple Game with Construct 2

2

Index

Attached Files

The following files have been attached to this tutorial:

.capx

collect-stars.capx

Download now 207.46 KB

Stats

8,320 visits, 17,264 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 11 Feb, 2016. Last updated 19 Feb, 2019

Now for Instructions we can just add text box and just add message what player has to do. Create textbox and name it txt_MSG. And place somewhere like this:

Now we must have game ending somewhere, therefore create GLOBAL Variable;

isAlive = 1

add this code;

Now if you run it you will have problem. Check it out, no fun is it?

Let’s correct this problem add this code in start of layout;

System set isAlive to 1

System set Score to 0

Now there is still little problem and that problem is if player is moving about, suddenly enemy spawn in identical position then player is dead. To correct this we can do many things but simple one will be is object OPACITY. You must be wondering how OPACITY will give us those options.

Add these 2 lines in system;

Now on enemy created add this line;

Now only code needs changing is below;

Global variable isAlive is game loop. Game will carry on until isAlive becomes to ZERO. Now I have shown you how to create this type of game.

From here on I want you to IMPROVE this game and see what you can achieve and accomplish your next masterpiece.

Good luck and God Bless

Lord Shiva bless you all

.CAPX

collect-stars.capx

Download now 207.46 KB
  • 0 Comments

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