tnewhook's Forum Posts

  • Thanks for the help. I didn't know local vars were reset every loop.

  • I'm trying to loop through all instances of an object. If I create the variable changeTextLoop as a global variable, it loops correctly. However, if I create it as a local variable under the testResetLoop group, it doesn't loop. Could someone tell me why this is? A sample capx is below.

    Change multiple text objects.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I created several TEXT objects programmatically, and set an ID instance variable. I then try to loop through the instances, to change to different text (based on the ID). I can't figure out how to loop through all the objects. For some reason, it changes the first instance, then stops. I'd appreciate any help.

    This is how I create the objects <img src="https://dl.dropbox.com/u/12722403/Construct2/createQuestionInstances.png" border="0" />, and change the objects <img src="https://dl.dropbox.com/u/12722403/Construct2/reset%20question%20instances.png" border="0" />

  • Thanks for your help! I appreciate it!

  • I'm trying to recreate a typical multiple choice test - the idea is:

    out of a larger set of unique values, I have to pick 4, with one of them being a particular value, others being other random variables in the set. The 4 also have to be unique (can't pick the same option twice in any given event)

    This is working for the most part, but it's giving me the same values for the 4 options (except for the particular value, which may or may not be the same as the other options)

    If someone could take a look at my capx, I'd appreciate it.

  • I think it had to do with a misconfigured JSON file. I'm going to keep tinkering. Thanks for the help.

  • There are no errors in the console. The browser complains that the script has stopped responding. I've reproduced the error in a capx - dl.dropbox.com/u/12722403/Construct2/JSONbugTest.capx. The only external plugin that I'm using is the comboBox by septeven (http://www.scirra.com/forum/topic46969.html)

  • I don't know if this should go in the bug report section, but this is my situation:

    I need to do two external AJASX calls. The first one is hardcoded(www.site.com/ajaxForm.php?varA=firstList) That result fills a drop-down box. When the user clicks on a menu item, it's supposed to send another AJAX call (www.site.com/ajaxForm.php?varA=secondList&varB=selectedItemFromFirstStep)In Firebug, I can see that the second URL is being called correctly (I can copy the address and load it in another window), but the entire browser window freezes. Reloading doesn't work. I can only close that window, and open another one.

    When I use a project JSON file, the app works correctly, but I need to get the info from a database.

    I hope that's enough info. Thanks for your help

  • WOW...you did it! Great job! Thanks so much

  • I figured out that I have the same problem with the mouse plugin. Thanks for all the work.

  • I've been reading through the forum, and you've done a lot of work. I was just wondering if you had anyone that has had a problem with Chrome 22. It works great with Firefox, so I'm not sure what the problem is. It loads the first item, and shows it in the box, but clicking the down button is ignored, and I can only select the first item. I'll try to post a capx in a bit.

  • Do some research on the AJAX object

  • I'm sure this has been covered elsewhere in the forums - I just can't find it.

    Is there a way to load a game with some external data already - such as putting a get string in the url, etc.? (or send data to the game without an AJAX request?)

    I have a game with a settings that is determined on the server. I want to be able to send that setting to the game when I load it, so that the game will know what to ask for when I do an AJAX request

    Here's a simplified version of what I'm looking for

    1) The server picks a random number from 1-5

    2) It sends the number (3) to the game

    3) The game sends sends an AJAX request back to the server with the number 3

    4) The server looks up in the database...If this user is 3 today, his color is blue.

    I hope it makes sense...thanks for the help

  • The problem was with my timer - I didn't have the proper check to make sure it didn't start until after the JSON was loaded.

  • I created a quiz using a JSON file. If I put in an HTML popup, it works fine. If I don't, the game somehow runs to the end, and displays the grade quiz button.

    The question is: Why does it work like that (I know it has something to do with stopping the flow of progress) and how do I get around it - run the program the way it should without the popup?

    The CAPX is at http://dl.dropbox.com/u/12722403/flashCard.0.5.JSON.capx