How do I

Get help using Construct 2

Post » Mon Mar 07, 2016 12:46 pm

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.
B
9
S
1
Posts: 26
Reputation: 479

Post » Mon Mar 07, 2016 12:52 pm

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

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Mon Mar 07, 2016 12:54 pm

@Ken95

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

I've merged a response from your other thread and locked the other thread.

This is the most appropriate section for your query.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Mon Mar 07, 2016 12:56 pm

OK. What s your email address?. ima gonna send it via email :D
B
9
S
1
Posts: 26
Reputation: 479

Post » Mon Mar 07, 2016 2:06 pm

Message: Ken95 can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
i cannot use PM yet. but here's my email address,
[email protected]
or
[email protected]

pleaseuse both :D
B
9
S
1
Posts: 26
Reputation: 479

Post » Mon Mar 07, 2016 2:12 pm

Message: Ken95 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
HERES THE CAPX LINK

https://drive.google.com/file/d/0B6Kon9NMcnGGSEN0ak15eUFZTTA/view?usp=sharing
B
9
S
1
Posts: 26
Reputation: 479

Post » Mon Mar 07, 2016 3:52 pm

I saw your other post, here was mine I made before I saw yours:

https://dl.dropboxusercontent.com/u/854 ... rGame.capx
B
226
S
60
G
33
Posts: 902
Reputation: 39,989

Post » Mon Mar 07, 2016 4:33 pm

Hi,

@Ken95
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))"

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Mon Mar 07, 2016 4:46 pm

Actually, floor and int are the same thing.

see ashley's post at the end of this thread:
floor-x-vs-int-x_t76352
B
226
S
60
G
33
Posts: 902
Reputation: 39,989

Post » Tue Mar 08, 2016 2:54 am

THANK YOU SO MUCH GUYS!!!! :D THAT'S EXACTLY WHAT I WAS LOOKING FOR!!! THANK YOU SO SO MUCHH!
B
9
S
1
Posts: 26
Reputation: 479


Return to How do I....?

Who is online

Users browsing this forum: David181, InfiniteRockets and 16 guests