fun4thebrain's Recent Forum Activity

  • R0J0hound, this worked great! Thanks so much. Now that I see how it works, I can work on making it a bit more dynamic because I never know how many arrays the kid might choose.

    One question though... if I looped through each element of each array, couldn't I just push that into my GameArray? I tried it, and it crashed Firefox lol but I thought theoretically it should work. If it did work though, I could just make a family of all the arrays and then whichever ones were chosen could be told to push their data into GameArray.

    Anyway, I will keep playing with that, but thank you so much for this help!! I am so excited!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hound, Oh my goodness! That completely looks like it should work. Let me work on it and I will let you know how it goes. Thanks!

  • Unfortunately, they are not one dimensional arrays. Each array has a size of (10,7,1). It would be fine to just push in the elements of each array, if I could just figure out how to do it properly. In AS3 I would simply add each array to the game array and then choose randomly from there. But, thanks for the suggestion R0J0hound.

    antares330, I am basically goaling to recreate the educational games that I have made for my site fun4thebrain.com. I have many many games that desperately need to be turned into HTML5, so I am tackling Construct 2 in hopes of rapid development. Since all the artwork is done, once I get the array situation figured out, I should be able to whip the games out. Fingers Crossed! lol

    I will look into the idea of randomly choosing from the chosen arrays. Maybe creating an array of the chosen fact families, and then, when loading the problems, it could randomly choose from that array and go from there.... hmmmm... that might work. Doesn't seem pretty, but it could be functional. Thanks.

  • I am creating an educational game that uses several arrays to hold the math problem and the possible answers. When the child starts the game, they can choose which math facts to practice. I have arrays created for each of them already. But, should the child want to practice their 2, 4, and 7 facts, I need to be able to concatenate the arrays into one "GameArray" that will be used to pull the problems from during game time.

    I have read the Arrays for Beginners and dictionaries and everything I can find on arrays so far, but I am hoping there is some simple one action that says, GameArray = GameArray + Array2; or something like that lol

    Any help would be great!

  • Hi all. I am new to Construct 2... been using it for about a week now. I have created many educational games using Flash and AS3, but am attempting to make a transition to Construct. The most important part of my educational games are the quizzing portion and the ability to pull from hundreds of arrays with questions. I have created the beginning of this process, and as I am new, I am curious if I have done this well.

    I would love to hear some constructive criticism and suggestions as to how to make this questions grabbing and answer checking sessions more efficient. Thanks.

    https://www.dropbox.com/s/udfnis1pbyqkh ... aproj?dl=0

  • Ahhh ok. Thanks so much!

  • I was hoping to get some help on some code today, but realized I cannot post attachments. I am new here, only been using Construct for about a week, any help?

  • Thanks so much. I have now figured out how to convert my as3 arrays into JSON arrays in Flash and then basically import them into a construct 2 array using Ajax. I will be testing this out today. Hopefully it works because I have tons of arrays for all different types of math problems that will be hard to reconfigure otherwise.

    You have been a great help!

  • I am an experienced Flash AS3 programmer, focusing on educational games for kids, but am trying to create games now using Construct 2. I am having no issues with understanding most of the logic of the process, but am having issues with the configuring of the data.

    I am attempting to have a math problem appear and then have 5 answers appear also on the screen. Then, the student has to choose an answer. Once they do that, the game will check to see if the answer is correct. If it is, it moves on to the next questions and fills in the question and answers again. Like I said, the logic is easy enough if I can just make the game pull a random number from my arrays.

    In AS3, my arrays looked like this:

    aThree[0] = ["3 x 0", "2", "3", "0", "1", "4", "0"];

    aThree[1] = ["3 x 1", "3", "5", "2", "16", "9", "3"];

    aThree[2] = ["3 x 2", "2", "6", "12", "8", "4", "6"];

    aThree[3] = ["3 x 3", "6", "8", "10", "9", "14", "9"];

    aThree[4] = ["3 x 4", "8", "9", "3", "4", "12", "12"];

    aThree[5] = ["3 x 5", "15", "16", "4", "9", "10", "15"];

    aThree[6] = ["3 x 6", "10", "18", "9", "12", "6", "18"];

    aThree[7] = ["3 x 7", "18", "10", "21", "24", "30", "21"];

    Can anyone assist as to how I would create arrays of this style that could be pulled from to fill the text in my game?

fun4thebrain's avatar

fun4thebrain

Early Adopter

Member since 22 Oct, 2015

None one is following fun4thebrain yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies