niwiyi's Forum Posts

  • 6 posts
  • When I make multiple Ajax requests (see screen capture below) one works I am getting unusual behaviour. When I run it locally, all requests succeed, including the interactions with php on a server. When I upload everything onto the server and run online, the second request (treatments) fails. Is there an obvious error here I am missing?

    Tagged:

  • At the very least, I want the blocks to be bounded/contained by the wall. I have set the wall and block solid behaviour to enabled. I expect that when the block hits the wall, it will trigger an event.

  • I am at a loss for why nothing is behaving as a solid here. Any help?

    https://drive.google.com/open?id=1KfMf60mTbytM_qHw5GfZfVTjMP7fVxcw

  • I have a game that reads from and writes to a mysql database. Basically, it writes game details to mysql.

    This is important because I also use CRON jobs to pull all player game data together in an asynchronous multiplayer game. When a player longs into the session, I use the Ajax to load data in from the most recent record (using php and sql). It all works fine, except for browser caching. Unless one plays in 'in cognito' mode, or clears their cache, the most recent data are not retrieved.

    I understand that clearing browser cache from within construct is probably not possible--for good reason. So is there any way from within construct to prevent browsers from caching things in the first place?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Perfect, that's what I was looking for.

  • Is it possible to use For each loops to iterate over nested loops in the following way?

    For Each Sprite: set i to sprite.UID

    For each Sprite: set j to Sprite.UID

    Array set at XY(ii, jj) = some number

    Looking at the debugger, it seems that the first loop iterates entirely, then the next loop; in other words, they are not treated as nested like it would in a typical programming context. This example is trivial, but I am wondering if/how this works in Construct generally. Can anyone help and/or explain?

  • 6 posts