jaytee's Forum Posts

  • Hi good day,

    I've spent most of my time the past days, on both of my PHP and C2 codes trying to figure whats wrong and i discovered this..

    Here is the link of my ajax request:

    jayteeegames.000webhostapp.com/PlayerRegistration/playerGetProfile.php

    The output is the array data in a json format which is stored in my database, i call it to store it back to my array once request is complete. I am using INTERNET EXPLORER to debug - WHICH I SUDDENLY DISCOVERED IS NOT A GOOD CHOICE hence making this post.

    So just now, for some reason ie is not opening so i changed my preview browser to CHROME and voila, request completes and store json format to array! I even tried FIREFOX and its also working perfectly!

    So the question is, Should i stop debugging in IE?? and just choose browser?

    I have been using IE because its fast to open up, and my chrome browser have too many tabs open.. but i think ill have to deal with it now that ie sucks..?

    Thank you in advance

    Tagged:

  • that makes sense, thanks Ashley !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Hi, good day!

    If you see my code below, its simply just a loading scenario to go to next layout after every condition is TRUE.

    This works very well on my tests on C2 BUT when i export and put this to my website, it takes a LONG time to go to the next layout.

    So i'm wondering,

    1. Is this a size problem of my game? Its only 33 mb tho.. or my coding/logic?

    2. or maybe in the website/webserver?

    I hope anyone can help me understand this as this is my first time uploading a game online.

    Thank you!

  • Hi!

    My game has been uploaded in a web server and it works perfectly fine. But i notice that its taking a long time to load in GOOGLE CHROME but faster in INTERNET EXPLORER?

    Anyone care to explain this to me? I'm worried that my players will get frustrated and i know that most uses chrome nowadays.

    Thanks!

  • Hi dop2000! Sorry to bump you on this week old thread again.

    I have accidentally once sent the array as JSON to google sheet using your codes. But i can't seem to make it work right now. How would you do it if it were you? Here's my code:

    Its not sending as of now, but i managed to sent it before!!

    Thank you!

  • Thank you!

  • Hi!

    I have made this before but i can't seem to remember it now >.< and i know its possible, how do i set text values of array to just ONE(1) text object? and have newline for each value?

    Thank you in advance!

    jaytee

  • construct.net/en/tutorials/sending-data-construct-23-1447 (link to tutorial)

    Hi dop2000 I want to send an array to a google sheet but my array values are not sent properly, meaning they are all not arranged.

    My codes:

    My array:

    Data sent to google sheet (Suppose to be arrange the same as above array CurX,0)

    Can you correct my coding?

    Thank you!

  • I got it now! brunopalermo

    I understand now, of course im "copying" the data of 02_todays_stats so i need to loop very curX of 02_today array (as you said!), and then store to 03_live_stats.

    I studied well your codes and converted it to what im more familiar with. It works fine and result are the same.

    That "int" (what do u call that? expression?) is a new thing for me and i thank you.

  • brunopalermo

    Ill check this tomorrow, its 12 am here :D ill be back at the same time so we can discuss more(maybe?). I really really appreciate this, thank you !

  • brunopalermo

    https://drive.google.com/uc?export=download&id=1JwdQaRy__jCvAde8LrnIqGSRdhtyWHGg

    Thank you so much for trying to help! :)

    EDIT: please try to copy the WHOLE link and paste to download, im getting an error when just CLICKING it. apologies

  • brunopalermo

    Thank you for the example but it seems that yours only works on "start of layout" ? Im trying to sort the array once AJAX has completed getting data and storing to my array, but when i applied to mine, it just ends up only being reversed

    And yes, i have tried to change your "repeat 30 times" to my "For each X element" and it worked fine like yours did

    Your sample is what im exactly looking for and im hoping you can help me further on this. Thank you!

    BadMario Ha! I understood that reference

  • Hi!

    It seems that the sort action of an array just sorts alphabetically?? (see photo) 16 > 2?

    Can anyone provide me how will i achieve to sort my values from LARGEST to SMALLEST?

    Why is construct does not give users option on sorting..

    Thank you!

  • Good day,

    When i say "Players", i mean multiple players. My game is an RPG (and will be online), and i want know where should I store their inventory once players logout and when they login, it will be there. Should i store it on a cloud? on a website?

    I am already using arrays and json for storing on a local storage but this is temporary as local storage will be cleared once players clear their cache/cookies/etc..

    I really just want to know where should i start, so if anyone can assist me, it will be very much appreciated.

    Thank you for your time