Constant777's Forum Posts

  • 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

  • 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...

  • Hi!

    I downloaded an example of a multiplayer chat.

    Added 1 Button: "Leave room"

    Added 3 text fields to it that display the connection status:

    1. is connected to the server (is NOT connected to the server)

    2. is logged in (is NOT logged in)

    3. is in room (is NOT in room)

    I made an output to the android file.

    Started the chat.

    The text became like this:

    1. is connected to the server

    2. is logged in

    3. is in room

    Turn off WiFi.

    The text became like this:

    1. is NOT connected to the server

    2. is NOT logged in

    3. is in room

    Why doesn't the chat leave the room?

    It is not possible to re-enter the chat.

    When I click "Leave room" button, the server writes:

    Error: not in the room.

    But the system thinks I'm in the room and informs me about it:

    3. is in room

    How do I make the correct exit from the chat so that it does not stay in the room when the connection is lost?

    Ashley, I need help!

    The problem still remains. Maybe Ashley Ashley can help solve it?

  • Today I exported a project that used to work without problems.

    I noticed that if I set the value of minifying the script to "Advanced" then the App does not start on Android.

    Although a couple of days ago everything worked. I tried a few more projects that worked before and got the same effect - the App does not start on android.

    The application icon is shown in full screen and nothing happens further. If I choose "Simple" when minifying the script, then everything works as before.

    What could be the problem?

    Ashley

    Tagged:

  • Hi!

    I need to change the color of top action bar and bottom navigation menu bar in an Android App or make it transparent.

    How can I do it?

    Tagged:

  • Hi!

    I decomposed the music by frequency using Audio.AnalyserFreqBinAt and got the data every 1 second.

    How do I play this data?

  • Hi!

    In my project there is a variable VarProject and there is also an array ArrayProject.

    I need to access them via Java in main.js.

    How can I get this data?

  • It's a PNG icon. It's supported everywhere. There's no need to use .ico.

    Ashley thank you very much for your answer!

    I really want you to make an official good plugin for the layout of the site with <dev> tags, with a feedback forms, with resizing for mobile devices and so on.

    So that the site turns out like in Wordpress, but with the capabilities of Construct it will be even cooler! You will attract even more users :)

    Construct has an unofficial plugin for website layout, but it's not good :(

  • Construct does already add <link rel="icon" ...> inside the <head> tag.

    Maybe I'm doing something wrong, but I don't have an icon.ico (!) inside the <head> tag :((((

    <head>

    <meta charset="UTF-8">

    <title>Title</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">

    <meta name="generator" content="Construct 3">

    <meta name="description" content="Official site">

    <link rel="manifest" href="appmanifest.json">

    <link rel="apple-touch-icon" sizes="128x128" href="icons/icon-128.png">

    <link rel="apple-touch-icon" sizes="256x256" href="icons/icon-256.png">

    <link rel="apple-touch-icon" sizes="512x512" href="icons/icon-512.png">

    <link rel="icon" type="image/png" href="icons/icon-512.png">

    <link rel="stylesheet" href="style.css">

    </head>

    Can you tell me how do I insert an icon.ico (!) inside the <head> tag?

    I would really appreciate your help :)

  • What I usually do is put .ico file in the root of exported project. Then modify index.html and add this inside <head></head> tag:

    > 	<link rel="icon" href="/favicon.ico" />
    

    I do the same EVERY time I update site :(((((

    And I couldnt type "?" to <title> in Construct :(((

  • Exported Construct games set the favicon automatically for you. See Icons and Splash in the manual.

    Yes, I see an icon on the site, but search robots don't see it.

    It must be in <head> such string:

    <head>

    ...

    <link rel="icon" href="https://site.org/favicon.ico" type="image/x-icon">

    ...

    </head>

    and the icon should be at this address (https://site.org/favicon.ico).

    Otherwise, search engines do not see the icon on the site and does not show the icon in the search results.

    There is a great wish you to make an official good plugin for website layout. It will be a bomb! ;)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi! I need to place a favicon when exporting a website to html. How can I do it?

    Tagged:

  • Hi!

    I downloaded an example of a multiplayer chat.

    Added 1 Button: "Leave room"

    Added 3 text fields to it that display the connection status:

    1. is connected to the server (is NOT connected to the server)

    2. is logged in (is NOT logged in)

    3. is in room (is NOT in room)

    I made an output to the android file.

    Started the chat.

    The text became like this:

    1. is connected to the server

    2. is logged in

    3. is in room

    Turn off WiFi.

    The text became like this:

    1. is NOT connected to the server

    2. is NOT logged in

    3. is in room

    Why doesn't the chat leave the room?

    It is not possible to re-enter the chat.

    When I click "Leave room" button, the server writes:

    Error: not in the room.

    But the system thinks I'm in the room and informs me about it:

    3. is in room

    How do I make the correct exit from the chat so that it does not stay in the room when the connection is lost?

    The problem is that if the Internet connection lost, the program shows that there is no connection to the server, but I am in the room. How is this possible?

    Because of this error, it is impossible to create a room since I am supposedly already in it.

    And when I try to say to SERVER leave the room, the server reports that I am NOT IN the room but the PROGRAM says that I am IN the room.

    And all this happens on the example of a multiplayer chat without any changes in signalling.

    I need help!

    can any of the developers answer my question?