Xocolade's Recent Forum Activity

  • Really great plugin !

    Thanks for sharing :D

  • Thank you all so much , i was able to fix the problem . I simply remade the system using 3D arrays . It's much easier that way , and it's working really well .

  • After some testing , i can say that this problem is occurring because there is no time for the system to get the keys , and also because i am not very good at loops in Construct 2 .

    This pic below demonstrates a test i tried to make.

    What i want the loop to do , is to wait one second , set the text to the loopindex , and then repeat 23 more times . So the text should be :

    0 - ( 1s pause ) - 1 - ( 1s pause ) - 2 - ( 1s pause ) - 3 ( 1s pause ) - 4 ( 1s pause ) - 5 , etc ..

    Instead , there is just a 1s pause at the begginning of the layout and the text is set to -1 ( indicating the loop is over ) .

    Basically , the loop is just repeating 24 times in the first second of the layout , and completely disregards the 1s wait action .

  • Sometimes it bugs out and says that a trigger event cannot be inside of a loop .

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • By putting a 0.1 second wait before the local storage gets the key , it worked . But what i am actually trying to do is more complicated .

    I am creating an RPG where a player can have up to 5 characters , and all of the data of these characters are saved to the local storage .

    If you delete a character , the entire local storage keys should change . For ex :

    If you have 3 characters and you delete your first one , your old second character will now be the first one , and your old third character will now be the second one .

    The data that will change includes all the inventory slots of the characters .

    So , in the example cited before , the now first character would have all of the data of the inventory slots of the old second character , and the now second character would have all of the data of the inventory slots of the old third character .

    To do this , i am doing a loop that repeats 24 times ( amount of inventory slots ) , but it's not working . The keys are not changing at all .

    PS : All the keys are already saved , so all the keys that are being get from the event already exist .

    Here are 2 prints ( these represent all the data that needs to be changed if the player just deleted his first character ) :

    I don't expect anyone to come up with a solution immediately , since this is really hard for me to explain and also for someone not involved in the project to understand .

  • Oops . I didn't notice , sorry

  • Thanks for the response .

    The "Wait for previous actions to complete" doesn't seem to exist for me .

    Here's a print : ( i tried putting the "Wait for previous actions to complete" action in the red box )

    I am running R269 .

  • I tried doing this :

    It didn't work out , i got these values :

    I can't think of any other way to do this . Any help ? Thanks in advance .

  • Thank you all so much ! I got a TURN server working using Xirsys :D

  • Thanks , ill look into creating a turn server

    Just for curiosity , is there any way i can connect players online using Hamachi ( LAN ) ?

    I tried to , but it didnt work out

  • First of all , thanks for the response :D

    I am in control of my network , just like my friends are in control of theirs .

    What are some of the other things i can do other than disabling the firewall ?

  • Hello .

    I've been messing a lot with Construct 2's multiplayer function recently .

    I used the chat room example by scirra as a foundation for my project .

    But , the connection is only successful on a local network . It fails whenever i try to connect with my friends across the country .

    The problems are :

    1 - The peer isnt able to see the host and vice versa .

    2 - The peer and host's messages dont show up for each other .

    3 - ~20 seconds after the peer joins the room , he gets kicked out .

    These problems are ocurring both in my project and in scirra's official chat room .

    Any help ? Thanks in advance !

    PS : Sorry for bad english

Xocolade's avatar

Xocolade

Member since 22 Jun, 2015

Twitter
Xocolade has 1 followers

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies