CROmartin's Recent Forum Activity

  • CROmartin in regards to your prev question, I think the way i got round it was to give each player an id (instead of using MyActorNr)...

    4 players > on join > id = 1, 2, 3, 4

    Add a 'room variable' called 'availableSlot'

    player 1 leaves > availableSlot = player1.id

    player 5 joins > player5.id = availableSlot (player 5s id becomes 1, to replace the player that just left).

    Hopefully this makes sense, might be a better way to do it with arrays

    Thank you on your answer, but can you tell me how did you locate which player is leaving?

  • Hi again!

    I don't have any idea how would I deal with this scenario so if someone has idea(actually I do have one): so I have players connected to room and when games starts every player gets same random word, but thing is I want them to get same word, is there possibility to set up calculation on server? For now I would go with masterActorNr doing this part, which is sufficient enough, but still if someone has other thoughts I would love to hear it.

    Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > but when first player leaves everything is lost, everyone loses connection. What can I do to stop "main lobby" from shutting down?

    This is wrong. When the master player leaves another player becomes master

    You are right, but I didn't know that player disconnects while browser tab isn't active and that is why another player wasn't assigned as master. How can I turn this off?

    Here is new question: MyActorNr doesn't decrement when player bellow leave, but ActorNrAt updates and tries to fill it self from beginning, is it possible to decrement MyActorNr?

    Thank you!

  • Hello everybody,

    When player connects, it connects onto "main lobby" or something like that however player automatically ends up in lobby or does it?

    Here is a thing, first player connects to server and creates room, everything fine other players can also create and join room between each other, but when first player leaves everything is lost, everyone loses connection. What can I do to stop "main lobby" from shutting down? Is there work around for such case? Well basically I could have game opened on PC all the time, but that sounds silly and I am sure that there must be some kind solution for it.

    Thanks in advance,

    Martin Starešinčić

  • Thank you on information, my problem was that project contained old function plugin so that caused problems.

  • JavaScript functions and functions in the event sheet are different. Typing "Functions." in an expression only displays functions in the event sheet.

    Thank you,

    I have few more questions if you know answers on it pleas answer.

    So that means there is no way that I can call function via JS?

    I can still access built in function via c3_callFunction externally?

    When I call c3_callFunction should I call it as some kind of property, like runtime.c3_callFunction?

  • Greetings,

    Why I can't call built in function via "Functions." ?

    I want call function(witch I have defined in event sheet) trough 1 line of JS code in event sheet, but it seems like built in function can't be found under "Functions." as a property.

    Thank you,

    Martin Starešinčić.

    Tagged:

CROmartin's avatar

CROmartin

Member since 4 Jan, 2021

None one is following CROmartin yet!

Trophy Case

  • 3-Year Club
  • Email Verified

Progress

4/44
How to earn trophies