condolent's Forum Posts

  • How would I filter it? It seems like AJAX is very straight forward and doesn't have alot of options :/

  • Is it possible to use AJAX and request a file but only output a certain part of it as text?

  • so I have several files to request (not sure how to request one line from a file).

    How do I use the Ajax.LastData and get a specific tag? I'm horrible at explaining so if you understand this you're a god.

  • Create a database and then every time user opens the quiz (or once per week, whatever), send a GET request and check new questions. Then save them into the game and voila, you have it.

    (it may not be as easy as I wrote )

    And every week or so add questions into the database.

    If I'm not wrong that's basically the same way as if I'd use my tactic (ajax)

    I guess it's the best way to do this

  • I'm currently developing a iOS app, it's a quiz game.

    Currently the plan is to update the quiz every week and I haven't come up with another way of updating the quiz than updating the app every week.

    Is there a way to update the quiz remotely? Without having to create a new build?

    I was thinking of using AJAX to get text from a file on a website, but it seems like kind of a hazzle. I'm looking for a easier way!

  • Yep! Thank you so much

  • Ah thanks! Will try it out now and see if it works better than anchors

  • Also the viewport gives error: "'ViewportRight' does not take 0 parameters" :/

  • Layout is 640x1136 and window is 640x960 (it's a iphone layout).

    Object is 640x99 and 160x99 (4 buttons 160x99)

  • My object thats using the anchor behaviour is kind of glitching to the right place on the start of the layout. It's on the lower part of the window and when I test it with a bigger resolution, it first is at the wrong place for the new resolution and quickly hops into place. Is it a way to make it not do this and just be there instantly??

  • Thanks, fixed it!

    Also you could use a global variable to intermediate this.

    I tried playing around with global variables but it seemed much more easier and better to use local storage directly instead of having it to save the variable to a storage and then load it, I felt like it may be cleaner just to do it like this, but thanks!

    Thread can be closed

  • It tells me "+ does not work with 'string' and 'integer'"

  • So I have a problem where I need to use WebStorage, but for a event I only need it to add a number. (The stored key is an integer).

    Tried making so:

    Click on Button -> Set local key "StoredKey" to "WebStorage.LocalAt(StoredKey) + 1"

    But it doesn't seem like C2 accepts me putting in the "+" sign. How would I do if I wanted to add 1 to the stored value?

    IE: If key "StoredKey" would currently be 3, when I click my button it would add 1 and it'd be 4

  • TheWyrm no problem, solved it by setting the encoding language to something else in xcode for data.js

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • TheWyrm I checked data.js with notepad++ before and it was in the UTF-8 encoding. Maybe it's supposed to be in UTF-8 (without BOM)?