chitter's Forum Posts

  • 8 posts
  • Thanks! How would one go about doing this?

  • Hey, I'm trying to build a word-based game that has to check if words are valid. i tried using an XML file which contained all of the words in the english language... but I was unable to check all of the nodes using X-Path. Next I tried to read all of the words from an XML file into an array and handle it through that. This also din't work. Now I was wondering if I could use the spell check part of the text-box to simply use the browser's built in spell check.... but I can't seem to get the result of the browser's spell check..... help!

  • I am having quite a bit of a problem with the "On Start of Layout" condition in my events sheet.

    I am using the same events sheet for all of the levels in my game, and it has worked very well until a few hours ago when only the "On start of Layout" function stopped working.

    My events sheet:

    -System-On start of layout

           > Set Time Scale = 1

           > Set "Next" button Invisible

    -System-(seconds still)= 3

           > Set Time Scale = 1/4

           > Set "Next" button Visible

    -Mouse-On left button clicked on "Next"

           > Go to next layout

    To the best of my knowledge, because both of the layouts use the same events sheet, this should make the "Next" button turn invisible and the Timescale return to normal when the next level launches; yet unfortunately, it leaves both of these the way they were at the end of the previous layout.

    Either this is a bug, or I am doing something really stupid.... And if someone could please spread their knowledge, that would be awesome.... thanks in advance!

  • Ahh thank you very much!

  • Thank you guys so much for helping me out!!! To figure out what was going on, I tried:

    +For each XY element

       -> Set value at(Array.CurX,Array.CurY)to random (100)

    +Every 1 second

       -> Set Text to Array.at(1,1)

    yet I was still frustrated because it kept giving me different numbers for the same place in the array. then I added that pesky little "while current value is zero" after the "for each element" and instantly it gave me the same number for the same position (1,1) over and over!!!

    Ashley, thank you so much for clearing that up for me, It was a really big help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hmm, that's a good idea and I'm sure that would work if my whole purpose was to create a bunch of random numbers, yet it defeats the whole purpose of an array... I guess i'm really trying to put numbers into an array and having them remain constant without imputing each as separate random numbers (for that would also defeat the point of an array)... yet that might be what I end up having to do...

  • alas, I tried what you suggested and yet it still spit out numbers at lightning speed... and you're right I meant to say "for each element"

  • I am trying to make an array which will generate random numbers for all of it's values and display those values one at a time in a text box, one second between showing each. My array is a 4X9. At first, I used:

    For each XY Element

            >set value at(Array.CurX, Array.CurY) to random(100)

    To show the results, I used:

    For each XY Element

            >Set text to Array.CurValue

            >wait 1 second

    What I got was a text box which flashed with random numbers, as if it was simply running the loop over and over, ignoring the "wait." I might just be dong something obviously wrong and stupid, but my understanding is that the "for each" loop will only run once for every value in an array... if anyone would be so kind as to impart their knowledge upon a lesser being, it would be greatly appreciated :)

  • 8 posts