Constant777's Forum Posts

  • It is impossible to establish drag and drop behavior in a family if sprites within the family have such behavior.

    Either the family can have a drag and drop behavior or sprites.

    It is not possible at the same time(((

  • I have 2 sprites on different layers.

    I can't swap the layers.

    There is a place where sprites intersect and overlap each other.

    I need only the sprite on the lower layer to be dragged when dragging in this place.

  • I have 2 drag-and-drop sprites that overlap each other.

    And if I click on the place where the sprites overlap, then I need only one specific sprite to be dragged.

    In all other cases, sprites should be dragged independently of each other.

    How do I drag only one specific sprite if 2 sprites are overlapping each other?

    Ashley I need your help :) I have not found an answer to this question anywhere.

  • Thank you so much!!! I figured it out and everything worked out! Without your detailed instructions, I would never have guessed :) Because the Multiplayer documentation contains only general information without examples. Thanks again!!!

    The listroom expressions are used in an "On room list" trigger event.

    To get this event to trigger, you'll need to use the "Request room list" action.

    The index will specify which room's information you want from that list, as the list can contain multiple rooms.

    To get the index number of your current room, you're going to loop through the list until you find the index of the room that matches "CurrentRoom". It will look something like:

    > On room list
    Repeat Multiplayer.ListRoomCount times
    Compare two values "Multiplayer.ListRoomName(loopindex)" = "Multiplayer.CurrentRoom"
    
    Set text to "Multiplayer.ListRoomMaxPeerCount(loopindex)"
    Stop loop
    
  • Hi!

    Ashley I really can't find anywhere how I can display the maximum possible number of users in the chat (Max peers).

    I'm using the "multiplayer chat" example and I need to display the maximum possible number of people in the chat there.

    Because max peers can change and I need to know how many max peers this host has in this chat.

    I found something similar in the documentation "Multiplayer.ListRoomMaxPeerCount(index) ", but it is not clear what the index means? I just need to output the max peers of the host.

    Ashley I really hope for your help!

    Tagged:

  • Hi. Tell me how to find out how many people are currently in the chat and what is the maximum number of people can be in the chat? What are the requests for this? I need to display these values on the screen. For example: there are 2 people in the chat now, maximum 10 people.

  • Thank you so much for your help!

    You can purchase the signalling server in the asset store and run your own server. However be warned that you should be familiar with server administration and networking topics, otherwise it could end up unreachable or less reliable than the official Scirra signalling server.

  • Ashley apparently I got into these 1 hour 40 minutes))

    Nevertheless, please tell me how I can use my signal server and is there a publicly available code or description of how to place it on my site? This is a very important issue for me to be able to use a backup signal server.

    Apologies for the inconvenience - earlier we increased the server hardware specification in order to improve the quality of service, but after the VM restarted a fault on the Azure host prevented any traffic reaching it. We immediately reached out to our hosting support who investigated and resolved the problem by moving the VM to a different Azure host. The service was down for about 1 hour 40 minutes. It should be working fine again now and we don't expect to need to do anything similar for a long time.

  • Ashley What happened to the signal server? I can't start a chat even from the examples in Construct. How do I make my own signal server? My game depends on the availability of the chat 100%. Is there a backup signal server or another on the Internet? It's just a disaster...

  • Hi! I opened an example: "Multiplayer chat example".

    How do I change a text color (and make it bold) of one word in the "Text input"?

  • > > There is a run in background plugin you can use.

    >

    >

    > Can you write more details? I don't know what you're talking about.

    https://www.construct.net/en/make-games/addons/462/run-background/ace

    Dont know if it will work in ur case tho.

    The server returned an HTTP 404 error. That requested URL could not be found.

  • There is a run in background plugin you can use.

    Can you write more details? I don't know what you're talking about.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My standard response is: don't do that, it will waste the device battery. Why do you need to send a message on a regular basis? If you need to do something like simulate the passage of real-world time in a game, then you can just measure the time between the app suspending and resuming, and simulate that much time passing, allowing the device to save battery in between.

    I need to do an in-game chat.

    To do this, I took an example of a multiplayer chat.

    But if you are absent from the chat for 10 minutes, the chat closes. And if the chat is minimized, then messages do not come to it.

    How do I solve this problem?

    P.S. There is a bug in the chat itself.

    If you turn off the Internet and then turn it on, you will need to restart the app to enter the chat. Because the app thinks that I am IN the room, but NOT connected to the server and NOT logged in.

    Some kind of paradox :)

    read more about this bug here: construct.net/en/forum/construct-3/how-do-i-8/leave-room-mutliplayer-chat-164494

  • Hi!

    I uploaded an example of a multiplayer chat.

    Added an action: send a message every 10 seconds.

    Then I exported it to android (I didn't choose "Pause on unfocus").

    After I minimize (collapse, make app not active, choose another app) the application, messages stop being sent.

    How do I fix this?

    I need to keep app alive after collapse the application.

    Tagged:

  • > VIBRATE iOS PROBLEM

    >

    > Hi!

    >

    > When I export my project for iOS, the vibrate always has the same (very) strong (long) intensity. But the same project exported to Android works correctly (with the intensity that I wanted).

    >

    > Any suggestion regarding how to fix this? Is it a Cordova Vibrate Plugin bug?

    >

    > Maybe I should specify a different intensity for iOS, Ashley Ashley?

    >

    > I REALLY need help...

    IOS 15?

    Yes. 15.0