Owzan's Forum Posts

  • 8 posts
  • Ajax does not transmit in percents the progress of its request, it only transfers the result, you can do as I wrote above, if you successfully receive data, simply set the width of your Progress Bar through a variable, or if you use a regular Progress Bar, set it to a number from a variable, if this number = 100, you carry out your further actions.

    Ok i understand now.. Thank you for the replies, thats really helps me a lot

  • well, you can pass the value to the width of the object

    I can do that with Variables, but i dont have any experience with Ajax. So how can i get the value to progress bar with Ajax?

    Thank you

  • I think that specifying the percentage of request loading is not very effective, since it happens very quickly.

    But if you want to do it for the sake of a visual effect, then you can start the timer if the request is successful.

    Create a variable and, if the request is successful, start a timer, add 1 to it every 0.02 seconds, and output the variable to the text.

    What is i use Progress Bar rather than text?

  • Thanks i got it.. I didnt realize i can do that

    5 Stars for both of you

  • like this?

    The text will be 1-100%, sorry i didnt mentioned that

    Thanks for the reply

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't understand - you expect that people will be running your game without closing it for several months?

    You can use Date object, use Date.GetMonth(Date.now) expression to get current month number. For example 0 is January, 1 is February etc.

    https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/date

    Sorry.. i meant it was like what server sided games usually do.. its like there is a boolean value being true, and after a month if they did not open the game, the value will be false. Is that possible?

    Maybe if there there is something that can track real time locally that will make the system knows if the user were not touched the game for a month.

    Thank you for the answer

  • I have no idea

    Thanks

    Tagged:

  • I dont have any idea how to reset value or Global Variables every month (Local)

    Tagged:

  • 8 posts