Random Answer

0 favourites
  • 9 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!

  • 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.

  • Commented capx.

  • Can't open that file... It says I have the version 84 construct and your file is in version 86

  • Yes indeed.

    Download and install the r86, it will work.

  • I downloaded it about there was a check failure then an error again after I closed that. Still having problems but thanks for trying.

  • 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 :

    <center><img src="http://dl.dropbox.com/u/36472942/construct/forumhelp/RandomMath_Layout.JPG" border="0"></center>

    Event sheet + objects :

    <center><img src="http://dl.dropbox.com/u/36472942/construct/forumhelp/RandomMath_Events_objects.JPG" border="0"></center>

    Group "MakeQuestion" expanded :

    <center><img src="http://dl.dropbox.com/u/36472942/construct/forumhelp/RandomMaths_GroupQuestion.JPG" border="0"></center>

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)