Você está na página 1de 16

Construct 2

Manual

Tutorials

Store

Arcade

Blog

Forums

Education

Register or Login
All Tutorials
Beginner's Guide
Top Rated
Newest
Write a Tutorial!
Search

Tutorial Downloads
File Size
Game of Trivia.capx 173KB

Translations
Russian (ru)

Know another language? Translate this tutorial!

Stats
2,288 visitors
12.8K page views
357 translation visitors
789 translation page views

Trivia Game
Tutorials > Beginner > General > Trivia Game
Favourite21 favourites

Tutorial written by Lordshiva1948Originally published on 25th, March 2015


12
Next

As I promised here is my trivia Game

Writing Trivia game is not that hard. Writing any game or software uses logic
and thats what Trivia game is. To create this game you will not need any plug-
ins. Construct is very powerful tool. What you will need is free version or latest
licence version. If you are using free version and if you can have the funds for
then please buy it. C2 is worth weight gold. Easy to use

For our Trivia game we will need text file so we can load it in our project. Your
file looks like this below: Please make sure your txt file looks exactly like mine
if not your game will not function.
And so on until you have ten names of data. Remember to use semicolon (;)
at end of your line. This means line of data finish there. You can use any other
symbol. At end of first Data use pipe line to end that part. To get pipe line
press shift and forward slash (\). You should get | pipe.
Before we go further lets create project and load text file. Check how we will
implement our array.
Create new project and call trivia game. Trivia game Project.

Open Construct 2 and create new project give name Trivia.


Set windows size default
Set layers size to default
On layers we will have 5 Textboxes so your layer will look like below
Name top textbox Question
Answer random question holder
Answer1 random question holder
Answer2 random question holder
Answer3 random question holder
Answer4 this one will be our correct answer holder
Feedback this one will give you Feedback Correct or Incorrect andswer
Add Function
Add arrays
Touch

Open full size image

Please open your Even Editor and First create global variables
enter this line

Open full size image

Share and Copy this Tutorial


You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.

12
Next

Comments
0

mzeid 668 rep


Nice tutorial, although it lacks some details to explain things for newbies. Thanks for sharing!
about a year ago
0

sebhdickh 281 rep


Please help
the answer not random for now but before it the answer is random
can fix it?
about a year ago
0
TreeHouseTrip 177 rep
Very-very, ty
4 months ago
1

Leave a comment
Everyone is welcome to leave their thoughts! Register a new account or login.

Make Games
o Construct 2

o Download Construct 2

o Pricing

o Compare Features

o Online Manual

Play Games
o Arcade

o Upload a Game

Download
o Stable Release (r244)

o Beta Release (r245)

4
4

Total downloads

Game Assets
o Free Bundle (34mb)

Community
o Blog

o Forums

o Tutorials

About Scirra
o About Scirra

o Careers

o Contact Us

o Press Kit

o The Team

o Privacy Policy

o Terms and Conditions

o Site Map
Scirra Ltd, Studio 117, The Lightbulb
1 Filament Walk, London, SW18 4GQ

Send us a postcard!

Copyright 2017 Scirra Ltd, All rights reserved.

Construct 2

Manual

Tutorials

Store

Arcade

Blog

Forums

Education

Register or Login
All Tutorials
Beginner's Guide
Top Rated
Newest
Write a Tutorial!
Search

Tutorial Downloads
File Size
Game of Trivia.capx 173KB

Translations
Russian (ru)

Know another language? Translate this tutorial!

Stats
2,288 visitors
12.8K page views
357 translation visitors
789 translation page views

Trivia Game
Tutorials > Beginner > General > Trivia Game

Favourite21 favourites

Tutorial written by Lordshiva1948Originally published on 25th, March 2015


Prev
12

Open full size image

Add this line please


Open full size image

PLEASE NOTE THIS LINES MUST BE ENTERED AS YOU SEE IT IF NOT


YOUR PROJECT WILL NOT FUNCTION AND YOU WILL BLAME ME. I WILL
PROVIDE YOU CAPX SO YOU CAN UNDERSTAND.

Open full size image

Your game is finish time to test it


Only thing I ask from you is if you like this tutorial add your comments plz
God Bless

Unlock your full gamedev potential


Upgrade to the Personal Edition of Construct 2, it has way more features and
won't holding back from making money and using your full creativity like the
free edition does. It's a one off payment and all Construct 2 editor updates are
free for life!

View deals
Plus, it's got a lot of additional features that will help you save time and make
more impressive games!

Congratulations on finishing this tutorial!


Did you learn a lot from it? Share it now with your friends!

Share and Copy this Tutorial


You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.

Prev
12

Comments
0

mzeid 668 rep


Nice tutorial, although it lacks some details to explain things for newbies. Thanks for sharing!
about a year ago
0

sebhdickh 281 rep


Please help
the answer not random for now but before it the answer is random
can fix it?
about a year ago
0

TreeHouseTrip 177 rep


Very-very, ty
4 months ago
1

Leave a comment
Everyone is welcome to leave their thoughts! Register a new account or login.

Make Games
o Construct 2

o Download Construct 2

o Pricing

o Compare Features

o Online Manual

Play Games
o Arcade

o Upload a Game
Download
o Stable Release (r244)

o Beta Release (r245)

Total downloads

Game Assets
o Free Bundle (34mb)

Community
o Blog

o Forums

o Tutorials

About Scirra
o About Scirra

o Careers
o Contact Us

o Press Kit

o The Team

o Privacy Policy

o Terms and Conditions

o Site Map

Scirra Ltd, Studio 117, The Lightbulb


1 Filament Walk, London, SW18 4GQ

Send us a postcard!

Copyright 2017 Scirra Ltd, All rights reserved.