pcprice76's Forum Posts

  • 1) in Some sort of lobby, it will likely be the host setting the standard for levels of participation.

    The host could set some sort of name for the room containing an indication of the level of play by the host.

    Peers can then select to join or not.

    2) Peers/opponents can only join rooms once they are connected to the signalling server.

    You could however, create a special/private room name, and convey the room name to other potential participants, which after connecting to the signal server, they join. When you use a mysql DB you have a lot more freedom, but users would still need to be logged in to to the signal server to join a room.

    To fetch info from the database, they should know there is a request for them, not the easiest thing, you could do something with email requests. Or have the users poll the database at an interval looking for requests.

    There are some options for construct 2 to get info from the URL calling the application/game, you could process the room name in there, and use that to join a room once connected to the signaling server.

    3) chrome, firefox and nodejs support webRTC connections. I am not sure about the cordova webRTC plugin, I have not tested this.

    Wow... thank you for your detailed answer

    I think i'll need to read a couple more times it to understand better ehehe

    Still not approached the Multiplayer part so it's also harder for now

    If i understood well, best would be to use a signalling server along a Mysql Db

  • Hi, i would like a suggestion from someone more expert then me

    I'm developing a card game and would like to have a multiplayer turn based part of it

    I looked around and there is more then an option to do it. Before wasting weeks trying something that is not giving the right result for me, can you suggest the way to go, considering that:

    1) The opponent will be choosen randomly but considering some variables (like the level of player for example) just to avoid an unbalanced match

    2) Opponent can be chosen also from a list of friends (like facebook ones if i can put that, otherwise friends added searching the user in a mysql db)

    3) Should be cross-platform (ios, android, html5, windows8)

    Thanks in advance for any help!

  • I'm going to do the same thing and will face same problem

  • You do not have permission to view this post

  • What expoter did u use?

  • I found another post in the forum and discovered th origin of the issue. It's the "wait" used in the function that causes the problem. After the wait every function.param will loose it's values

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I just spent all the day trying to understand why sometimes the function.param was not collecting the passed value and fortunatly i came to this topic!

    Have to say that, since i was born with "basic" language, is really hard for me to get into construct 2 "wait"

    It' s really important to me to use a wait command to have all the sprites, text and effects appear in the right sequence and timing.

    If wait function won't work inside a function, how can be the right "timing" achieved?

  • I have a little problem with functions. I have a Baloon with some text in a function and i want to pass text to it through function.param

    I tried many times, with simple text "" and also with a global text variable, just to try, but it never works. The collected param will always be a 0

    I also have a part of the game where one of the params is a number that will be added to score (1 or -1) and even in this case it does not work... but the strange thing is that it was working before, it simply stopped working in the last month....

    I think that i'm missing something about function.param part!

  • i think you could include the fix in your troubleshooting guide

  • Solved the Issue!

    Here what i did:

    1) Open CMD as administrator

    2) wrote the line to reset the winsock: netsh winsock reset catalog

    3) restarted the computer

    All back working now!

    Maybe it can be useful to put it in the troubleshooting tutorial

  • Hi zenox98, i'm aware that probably is a problem in my environment and that maybe the update is only a casual event

    For this reason i asked for hints, maybe it happaned to someone else

    Thanks for you reply, will update you soon!

  • Problem Description

    After updating to latest build 200 the preview in browser does not work anymore

    Affected Browsers

    • Chrome: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    windows 8.1 pro

    Construct 2 Version ID

    200

    After the update, i could use the software the same day, even if something weird was happening with a part of my code (a simple number not collected anymore by funcion.param)

    I had to stop 2 weeks from using it and today the surprise... there's NO WAY to start preview anymore on localhost!!!! Every time, even starting the software as administrator, all i obtain is a blank page with "page not available" error....

    Please can you give me some hints? Because actually i can't use the software anymore...

  • Wow... thanks for your kind reply!!! I chosed the array because i thought that was better to handel 2 arrays instead that 4 instance variables multiplied for every instance of the object... then i found myself inside of a Function, trying to apply it to an array instead of the other depending on the game turn and was a little bit messy. All easier with instance variables. But mine was a baseless idea, because i do not really know if those variables are heavier of 2 arrays or if it's absolutely not important

    What do you think

    However thanks again for your precious help, was really appreciated!

  • Hi, i have a doubt. At the moment i'm using 2 arrays to handle the card hand of players. In this array i have 5 rows and 5 columns (5,5,1)

    The first value identify the card, the other 4 values in the column the values. These values can change during play.

    i'm in doubt if it's better to handle those 4 values with the array or to put, instead, 4 instance variables in the card object...

    Any suggestions?

  • The page completely hangs... i will try more this evening. All i know is that is something related to the Array object. Made some experiments and when i deleted the last one i modified (changed height from 1 to 5 and populated it) the problem disappeared :/