aquadijoib's Forum Posts

  • Thanks oosyrag,

    I'll be looking into that aswell! I haven't done anything with the dictionary object yet..

    Thanks again!

  • Thanks paladin it works perfectly!

  • Hi,

    In my latest App I have 2 arrays and I would like to pick an index of the first array, which contains similar words like any index of the first array.

    The goal is to pick the index of the first array, that contains words which the user has put in his "favourites" (second array).

    For example:

    First Array:

    1. Dog Flower Cat

    2. The cool cat

    Second Array:

    1. ??? ??? ???

    2. Flower Cat Smiley

    In this case, the first index of the first array contains two matching words with the second index of the second array so the program should pick the first index of the second array.

    Hopefully this explains my problem a little better .

    I just tried to do it with many loops but I actually lost the overview :/ .

    Does anyone know of an easy way to do it?

    Any help is appreciated!

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Everade,

    I actually got the multiplayer part to work. The only problem is, that the "AddLog" function doesn't work, even though it works in the rest of my project.

    I didn't find a solution yet .

    Thanks again!

  • Hi,

    I just got both the peer and the host to send their array and I could I even receive it on both ends. Still I can't see anything from the AddLog function.

    Here is the current state of my events:

    https://drive.google.com/file/d/0B7r2WY ... sp=sharing

    Any ideas?

    Thanks! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Thanks oosyrag , ,

    I can't really post a capx right now because the events that you can see on my screenshot are located in a bigger (a little messy ) project.

    I just wanted the host and peer to send their arrays to their opponent, because the array contains the model of the players. That model is too big and consists of too many different parts so that I can't just use the sync action. After the array is received, every player will have his enemys built up by a program that I already made. The different parts that were created from the array are then pinned to the "core" of each player so that they move with him.

    My arrays aren't empty and I can't see the notices in my log.

    Thanks again!

  • bump!

    Does anyone know how the multiplayer plugin works? And what I've done wrong?

    I still haven't found a solution to this problem. Maybe it even is a bug.

    Any help is appreciated!

  • Thanks gumshoe2029,

    Yes the peers are connected properly. I can already see them moving on each computer (they are synced).

    I don't think the problem has something to do with the connection because the peer is already able to send his array data to the host.

    Thanks again!

  • Thanks for your reply gumshoe2029,

    Yes that's what I want to do. The Array contains the "blueprint" of the local player and that is supposed to be transferred to the other player, so that he can load it into the enemy array. If that would work, I would be able to load the player models of the enemys on each players computer.

    Thanks again!

  • Hi,

    In my current project I want to send an array from the host to a peer and from that peer to the host. I already added that to my project but for some reason it

    doesn't want to work. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    I also added the same AddLog function as from Ashleys multiplayer tutorial to see what it is doing right now but the function doesn't work either (only in that part of my project).

    Somehow the host can actually receive the array from the peer, but the array from the peer never arrives at the host.

    So I have no idea what to do to fix the problem <img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused"> Does anyone have an idea? I'll upload a screenshot of the event sheet in this post.

    Thanks for any help! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://drive.google.com/open?id=0B7r2W ... i1rZWUxcjg

  • oosyrag, Kyatric,

    Thanks for your help! I just created a program that will put the building of each player in an array and load it again later from the json string. It works perfectly!

    But how should I send the array to the other player? Should I do it with the broadcast action? Because the array is quite large.

    Thanks again!

  • Hi,

    I'm working on a multiplayer game right now and I want to have 2 players that have 60 seconds to build themselves a machine to fight against each other.

    These "machines" are made out of hundreds of lines that the players can create. I already made everything work as a singleplayer game, but now I want to sync these lines. I think it would be a waste of bandwidth to sync every single line. What is the best way to sync hundreds of objects that are pinned to a core which the player can move?

    Any help is appreciated

    Thanks!

  • Hi,

    I have multiple sprites in my game which can be rotated. Now I want to draw something with sprites and attach these "parts" to the sprites that can be rotated.

    To do that I want to select one of these attachment points before starting to draw and then all lines that are drawn will be pinned to it.

    Does anyone have an idea on how to do that the easiest way?

    Thanks!

  • R0J0hound,

    Thanks for your reply!

    I didn't get it to work like you said but I found another way to do it. I'm using a loop now that tests for an unused index of the array. If it finds one it simply sets the variables at the loopindex.

    Thanks again!

  • Thanks for your reply!

    But how do I add a value at the back of my array and at a specific Y and Z index? So for example:

    Front.X, 0, 1 and the Value to add there is "Hello World!"