# How do I

0 favourites
• 10 posts
• Guys. I need help on something.

I am stuck on developing my game. it is 95% finished (If you only look at the mechanics and not the arts and design).

Here are the rules of my game.

it is a number game.

there are nine buttons on the screen with numbers 1-9 on them.

there will be a random number(Sprite) flashed on the screen one by one. Whatever is currently flashed, is the correct answer. However, there is a twist.

Instead of having the current number as the correct answer, the previous number WILL BE the correct answer. For example, the first number appeared is 1, technically since there are no previous numbers, the correct answer is one.

the next number flashed is 5, for example. since the previous number is 1, the answer is 1. then the next number flashed is 9. since the previous number is 5, the answer is five.

the point where i am stuck at is that i cannot assign the previous number as the correct answer.

my current capx is that the current number is the correct answer and i cannot make the previous one as the correct.

Please PM me for those who can be of help. im gonna send you my .capx via email so you can under what algorithm i used.

THANK YOU FOR WHO EVER CAN SOLVE MY PROBLEM.

• Hi,

this reminds me of the Simon Says tutorial

https://youtu.be/RTiCVoGfyk8

With this - I'm pretty sure - you can solve your problem, but it works with arrays and so maybe is not how you made your game (or would like to).

ps. if you like send me your capx and I take a look

• Please don'y multipost the same question over different sections.

This is the most appropriate section for your query.

• i cannot use PM yet. but here's my email address,

or

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• I saw your other post, here was mine I made before I saw yours:

https://dl.dropboxusercontent.com/u/854 ... rGame.capx

• Hi,

I looked at your capx and I could have changed that, but I thought it could be done a little bit nicer than yours.

But I made it not near as elegant as Paradox (or beautiful)

https://www.dropbox.com/s/hedlen42i1uvb ... .capx?dl=0

Paradox does int(random(10)) give you really a perfect random number? I thought you should use (because of rounding)

"floor ((random(1, 10))"

• Actually, floor and int are the same thing.

see ashley's post at the end of this thread:

• THANK YOU SO MUCH GUYS!!!! THAT'S EXACTLY WHAT I WAS LOOKING FOR!!! THANK YOU SO SO MUCHH!

• 10 posts