make a babadum game?

Get help using Construct 2

Post » Fri Jan 24, 2014 3:41 pm

Hi there.

I'm trying to make a game like babadum. http://babadum.com/

It's a simple concept; but this is my first time using an array, and I'm way off.

I want one correct answer to be visable, the other 3 should be random and incorrect.

Any help appreciated.



B
7
S
1
Posts: 32
Reputation: 514

Post » Sat Jan 25, 2014 8:35 pm



Hi all,


So, I've broken the problem down into smaller challenges.

First up:

How to make the Right Answer (R) appear in one of 4 random positions
(I'll work on the wrong answers(W) when this bit works)

So the goal is to load something like this each time:

R W
W W

W R
W W

W W
R W

or

W W
W R


Therefore:

1. I've set a global variable called right_answer_position.
2. On start of layout set right_answer_position to random(0,3)
3. On start of layout, if right_answer_position = 0 set right_answer to (175, 124)
if right_answer_position = 1 ...etc


...this doesn't work. Any suggestions?

(screenshot here:) http://3.bp.blogspot.com/-HN1BmMLsh3s/UuQbEGHo_wI/AAAAAAAAAnc/234j1skZXe8/s1600/2.png
B
7
S
1
Posts: 32
Reputation: 514


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests