tnewhook's Recent Forum Activity

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've tried this on Ubuntu Firefox, Ubuntu Chrome, Windows Firefox, and Windows Chrome, and so far, only Windows Firefox doesn't have this problem:

    When I log into the forum, go to a forum topic, and try to submit a reply, it says that I'm not logged in. The header says I'm logged in, and it's right after I load the page, so it shouldn't have timed out yet.

    I'm sure I'm not the only person using a browswer other than Win/FF, so what gives?

  • The concept is kind of cool - and the graphics are nice

    a few things I found (some are personal opinion):

    1) The platforms aren't aligned with the objects themselves - e.g. the platform for the bench is wider than the actual bench - which means I'm floating in mid air once I get to the right side of the platform.

    2) The origin for the bird is at the tail rather than the legs, which makes the left-right motion change look strange.

    3) I can't walk in front of the two black boxes.

    4) The movement of the fox is too limited

    5) There should be some sort of animation on the fox when he catches/eats the bird

  • You'll need to give a better explanation of what you want! That post tells me nothing! What php are you talking about? Take a look at AJAX object

  • OK...I've gotten it to work, but I can't figure out WHY. If I put a browser ALERT after the AJAX JSON load, all is well. If I take it out, the quiz skips to the end, and the grading button is shown. The capx file is at http://dl.dropbox.com/u/12722403/flashCard.0.5.JSON.capx

  • The PHP file is part of a much bigger project - it pulls data from a database. The real URL is 2 folders deep.

    This problem happens when I've uploaded the project to a folder on localhost:82. I've also tried it without the leading localhost (only using /folder1/folder2/phpfile.php) I'll play around with project files, but I'd rather use files in my existing folder structure.

  • From what I can tell, if I load an AJAX object, I can then use that data as a string, from AJAX.LastData. If it's in the correct JSON format, I can then load that string as a table array?

    Is this correct?

    I'm running a local server on localhost:82 (LAMP stack)

    This is what I have now:

    on start of layout -> load localhost:82/phpfile.php with tag "sometag"

    on "sometag" completed -> load array vocab from ajax.LastData

                          -> set variable numberOfColumns from vocab.width

    Here is the format of my JSON file - It does pass as valid JSON:

    {"c2array":true,"size":[7,4,1],"data":[[["I"],["w?"],["?"]],[["you"],["n�"],["?"]],[["him"],["t?"],["?"]],[["her"],["t?"],["?"]],[["it"],["t?"],["?"]],[["they"],["t?men"],["??"]]]}

    Here is the .capx: http://dl.dropbox.com/u/12722403/flashCard.0.4.capx

  • Thanks for the tip - it' pretty elegant. I was just wondering if Construct had a way to display a leading zero - ex 1:03, 1:02, 1:01,....

  • I figured out the problem - I had the distance check in the wrong place <img src="smileys/smiley5.gif" border="0" align="middle" /> Thanks for the help

  • just export it to another folder, then use FTP to upload it to your site. Probably the simplest way to include it in the site is to put the index.html file in an iframe.

tnewhook's avatar

tnewhook

Member since 30 Mar, 2012

None one is following tnewhook yet!

Connect with tnewhook

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies