pennyhaynes's Recent Forum Activity

  • Can you explain what "properly including the event sheet in your main one" means? It was working fine one minute, and then no longer working the next.

  • Thank you. I will check out the plugin and consider the loop. I HAVE circumvented it by doing all of the searching in php right now and then parsing the data in the game's array. But I really want to learn everything that this can (and can't) do. :-)

  • For the life of me, I can't figure it out. All of a sudden, one of my pages stopped working. Then, to make matters more confusing, I updated immediately afterward, and all of the text disappeared from my buttons (which I know is a bug of 72).

    Please look at this capx and look at the Options page. I have disabled EVERYTHING except a txt box that should populate and a button (Return to Login Page) that should take you back to the Opening page. But neither work for me. Now, if I change the manual text that the text box starts out with, it shows up. But no ACTIONS on the Options Events page are functioning.

    Please help me figure this out. It's driving me crazy!

  • Thanks for the reply, but if I can't catch the OnComplete during the loop, then what you are saying is that I have to create 30 different tag names for each call and 30 different OnCompletes outside of the loop?

    Just trying to clarify.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, guys. Just wanted to make sure I wasn't going crazy. It is impossible to make multiple AJAX calls via loops then. OK. Will have to simply grab all the data at once on the php page and parse it via loop.

  • The For Loop should be nested under the Start of Layout above - it is in the capx.

  • I understand that I must put For Loops as subevents so they do not work every tick. However, in my structure, I have

    On start of layout

    For loop from 1 to Couplets

         If find(RandomNumbers, SearchRN) > 0

              Set Duplicate to 1

              Add 1 to Couplets

         If Duplicate = 0

              AJAX: Request "http://...."

    Now, I want to get the data from the AJAX request, but it will not allow me to add that trigger anywhere within the above loop. It says it won't allow multiple triggers. It only allows me to add the AJAX "completed" condition outside the loop and outside the start of layout. So how do I get the results from multiple AJAX calls in a loop?

    Project is pennyhaynes.com/testgames/Array/Array.capx

    It's probably something simple I am unable to see, but I am stuck.

  • I will definitely read your link. I have used for loops before without any issues. I guess I had used it as a subevent before though. Thank you so much for your patience with me.

  • My bad - forgot the Array folder

    pennyhaynes.com/testgames/Array/Array-INFINITE_LOOP.capx

  • I was working on learning arrays by programming a game that creates 15 sets of questions and answers from data in a db.

    I added the plugin for Random Arrays, and maybe that is when it started, but I removed that plugin from this example, and it's still going crazy.

    Please check Layout 2. It is a simple

    For "test loop 2" from 1 to 3:

    System | Set RandomNumber to int(random(0,31118))

    txtRandomNumber |Set text to RandomNumber.

    Instead of 3 loops, the loop goes on endlessly.

    Layout 1 is basically everything I was coding but disabled as I tried to eliminate problems and add text boxes to watch my variables.

    The capx is pennyhaynes.com/testgames/Array-INFINITE_LOOP.capx

  • Thank you! I have not yet familiarized myself with plugins.

pennyhaynes's avatar

pennyhaynes

Member since 28 Nov, 2011

None one is following pennyhaynes yet!

Connect with pennyhaynes

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies