condolent's Forum Posts

  • Can someone please inspect this screenshot and tell me what's wrong? It won't switch positions. I want it to be like, when I press one time, it changes to the opposite side, and then when I press again, it goes back.

  • Then how am I supposed to compare the value of one key with another? Feels like it wouldn't really work? :S

  • Not sure if anyone's made a post about this already, but I played around with the 'new' LocalStorage plugin and I noticed that it doesn't have a "Compare Key Value" condition like webstorage did, only compare value and compare key. I might be dumb but they don't have the same meaning, do they?

    If not, you should add this to LocalStorage

  • condolent you will find effect here

    https://www.scirra.com/tutorials/1334/c ... onstruct-2

    That has nothing to do with my question xD

  • ain't working

  • Is it possible to specify what magnitude or whatever to start from? Because now it starts from 0 and climbs up

  • oh ok, I'll skip this then

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can I use the sine behaviour on my text object? I want the size changing thingie and that my text should change sizes but it won't, seems like it only changes my text objects' area of use.

    Is it a way to fix this? I want the text to get bigger and bigger and then smaller and smaller and repeat that pattern. Kind of like the Minecraft splash text, if anyone knows what I'm talking about xd

  • That I have requested the file with AJAX and it went successfully. IE; the file has been catched

  • Well it's not the catching of my file that's the problem, I have several more files that's catched without problems. So I think you misunderstood my post (don't blame you, horrible at explaining things)

  • I only use a normal website-server, meaning I upload a .php file with the content "hello" for example and fetch that file with ajax.

    This way I can change the content of the text files really easy

  • I need help from someone whos eyes have not started to melt from staring at this for too long.

    What have I done wrong here? I want to save a key in local storage using the WebStorage object. But the key is going to be changed every week so I put the key in a text file (.php actually, with just a text in it) on my webserver, so now it will fetch that text file using AJAX when layout has started and add that value into a key with the Dictionary object. Now this is what I've done to save the value from my webserver to a local stored key:

    On Start of layout -> AJAX: Request "address to the file" (tag "AlreadyDone")

    AJAX: On "AlreadyDone" completed -> Dictionary: Add key "AlreadyDone" with value AJAX.LastData

    Variable equal to or greater than 12 -> WebStorage: Set local key "AlreadyDone" to Dictionary.Get("AlreadyDone")

    This is how it's loaded and saved. I have no idea if it's actually saved, which is part of the problem. And to check if my saved key value is the same as the one on the web, I did it like this:

    Webstorage: Local key "AlreadyDone" is Dictionary.Get("AlreadyDone") -> Do stuff...

    WebStorage: Local key "AlreadyDone" is NOT Dictionary.Get("AlreadyDone") -> Do something else.

    It just seems to ignore what I have saved and continue as if my saved value is not the same as on the web, even if it is.

    I'm quite bad at explaining so I hope someone understands me at least..

  • If you want all your data loaded before working with it, you should store each LastData inside a dictionnary, using tags as keys.

    this sounds interesting and fairly easy, let me test and I'll get back to you

    EDIT: This is exactly what I needed! Thank you!!

  • Could you explain more specific what you mean with "tag" ?

    When using the AJAX expression, for example AJAX.GetLast("tagFromRequest") now I know that one doesn't work but if there's any ideas of doing something similiar?

  • Although this answer is so simple, it almost can't be the answer you are looking for:

    in the request action you can set a "tag"

    in the on completed action you can set that same "tag"..

    so in the ajax on completed with that specific "tag" - you can set the actions for what to do with the data associated with that specific ajax request..

    Yeah but it gets more complicated in my case

    I want a text to change to the file requested with AJAX, so if I request several files (with texts in it) it will get confused with what I mean with "GetLast" :/