Random Answer

Get help using Construct 2

Post » Mon Apr 16, 2012 10:37 pm

Hi I'm making a game requiring two random numbers set up in a math problem. I was wondering how to make the answer be the actual anwer to the problem. If you could tell me what the event would look like that would be great.
B
3
Posts: 23
Reputation: 396

Post » Mon Apr 16, 2012 10:42 pm

I would have 3 variables (2 numbers that make up the question, and one for the answer). I would then have text boxes that display those variables, and have an event that performs the math problem. Var 3 = Var 1*Var 2.

Would you like me to quickly put it together in Construct 2, or do you think I made some sense? Lol!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 930
Reputation: 9,358

Post » Tue Apr 17, 2012 12:39 am

Can you put it into constuct? I just tried and I did it with instance variables. Umm... I did X + Y = Answer all three of those things were the names of each text and I tried pressing apply but it said Unkown Expression.
B
3
Posts: 23
Reputation: 396

Post » Tue Apr 17, 2012 12:50 am

New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Tue Apr 17, 2012 1:30 am

Can't open that file... It says I have the version 84 construct and your file is in version 86
B
3
Posts: 23
Reputation: 396

Post » Tue Apr 17, 2012 1:41 am

Yes indeed.
Download and install the r86, it will work.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Wed Apr 18, 2012 2:35 am

I downloaded it about there was a check failure then an error again after I closed that. Still having problems but thanks for trying.
B
3
Posts: 23
Reputation: 396

Post » Wed Apr 18, 2012 2:57 am

That's strange. Did you uninstall the previous version when installing the r86 ?
By the way, r87 has been released since it should even work better.
I've just tried opening the capx and got no error, there's an issue on your end.

Make sure to uninstall all copies of C2 and install the very latest release r87.
Install it, download the capx again, open it.

If you're still obtaining check failures and errors, be sure to make screenshots/read the content of the error messages as it gives informations on what may go wrong.

Anyway, Layout :


Event sheet + objects :


Group "MakeQuestion" expanded :
Kyatric2012-04-18 03:00:03
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Wed Apr 18, 2012 4:39 am

Alright Perfect thanks so much that really helped. I'll just like change the numbers around and make the titles my titles so it fits into my first, going to be, app. I really appreciate it.
B
3
Posts: 23
Reputation: 396


Return to How do I....?

Who is online

Users browsing this forum: ETgirl79, Matthew de, semaso and 24 guests