seriousfun's Recent Forum Activity

  • Thank you Lionz. That's a big help.

  • I have a large number of stationary sprites in my game and need to change a small number of them, different sprites each time, when a button is clicked.

    My thoughts were to use a variable name to refer to the sprites and make the change but I cant find a way to do that. Its most likely something simple that I am completely overlooking but it has had me stumped for a couple of days.

    Any help would be most appreciated.

  • I have stripped everything back as much as possible to eliminate potential error sources. The perl script no longer process the url, all it does is return a simple text message.

    PERL CODE:

    #!/usr/bin/perl

    print "Content-type: text/html\n\n";

    print " This is a very lengthy response to the script call by the construct 2 application.";

    exit;

    The Construct 2 code is

    Construct returns with.....

    This is a very lengthy

    apparently the remained of the text has been stolen

  • I have copied and pasted the url into the browser and the result is as I would expect. I did make an error in my counting of characters however, I forgot to include some pre text so the actual amount is 24 characters received and not 12. It seems odd that it works fine until I add that 1 last character and then it fails. Its got me beat. I have puzzled over this for 24 hours now.

  • I am having my first experiments with using the AJAX function where I am sending data from a form to a perl script. The script parses the url and spits back the values as well as saving them to a .txt file on the server so that I can check that the url was sent correctly. The .txt file shows exactly what I expected and the AJAX.LastData response works flawlessly until the dtat sent exceeds 12 characters.

    Once I enter 13 or more characters into my form I get a blank response even though the server .txt file shows that everything was sent correctly to the server and processed correctly by the perl script.

    It appears that my error is being caused by the AJAX.LastData only accepting 12 character responses.

    Does anyone have any ideas on what is happening here?

  • Thanks for the help guys. Most appreciated.

  • I have a number of objects, text and images, that I want to change the content of.

    At the moment the only way I can see to do that is to call individually code the change to each of these objects. It would be far more efficient if I could include them in a loop and just reference them using a array.

    for example the array could consist of text1, text,2 text3, text4 ( The name of the four text objects )

    then a loop could be used to cycle through the array and update each text object with the new data. Is there a way to do this in Construct? I have yet to find it.

    Any help would be most appreciated.

    Allan.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wish to be able to produce a table of data with each row containing various strings and numeric values. Each row should ideally be selectable and it would be a bonus if the table was sortable. I have been unable to find anything yet that allows this to be accomplished. Any one with any ideas?

seriousfun's avatar

seriousfun

Member since 13 Feb, 2018

None one is following seriousfun yet!

Trophy Case

  • 6-Year Club
  • Email Verified

Progress

7/44
How to earn trophies