PapitoMyKing's Forum Posts

  • Hi,

    So I'm trying to rotate a sprite with touch, it works... but when I touch the 1st time the sprite "jumps" to certain angle, and I don't want this, I want it to preserve its original angle, and then rotate from there.

    Video of the problem:

    youtu.be/xCUZyu5YIf8

    I'm currently using:

    Is touching - set angle to(sprite.X,sprite.Y,Touch.X,Touch.Y)

    Thanks!

    Tagged:

  • Ashley Ok, got you a winner, the minimal project's audio doesn't work on:

    iPhone 6s on iOS 13.3

    iPhone 7Plus on iOS 14.01

    The minimal project is just a screen, and some buttons that play the audio. Drive of the C3 file:

    drive.google.com/file/d/13f8Bxn0P2VGZDIQxxNC7_lT6EcdQYXWP/view

    It is uploaded to itchio:

    papitomyking.itch.io/episode-7-minimal

  • Ashley But if it is a mistake of mine, why does the sound works 100% of the time on my pc and android, but only sometimes on ios? I will make a minimal project and try anyways, need to resolve this.

  • yme Thanks, but downgrading to the C2 runtime is not possible for this game.

    Ashley How do I send a sample project just for you? I cannot publicly post it here since it is a job for a private client.

    More details about this:

    - The audio is available in iPhones, but it has two problems still. The first is that if you leave the browser (to use a calculator on your phone for example) and come back in, the audio doesn’t work anymore sometime (bot not always - not sure why).

    - A user using an iPhone XR with the lastest iOS (14.0.1) could not hear any audio - not sure what browser they used. Likely Safari. On my iPhone 7 Plus with iOS 13.7 the audio is all over the place. It almost never works if I am on Safari, and when I use Chrome sometimes it works, sometimes it is really distorted. Video of the distorted audio, 1st time in my life I see this happening:

    Subscribe to Construct videos now

    youtu.be/wb12KVEsEY0

  • Thanks for the tip.

    And if I want the sound to be playable on all devices? I have a Webm version, and a m4a version? Construct 3 will pick the right one automatically?, like Construct 2 does?

  • As the title says. I imported wavs that where converted to Webm by C3. Yes, I touched the screen and played the game to make sure the browser has registered the 1st input so it has permission to play the audio, but nothing.

    Any ideas?

  • Hi,

    So, I'm wondering where does the date plugin gets its date from. From a resource online, or from the user's machine?

    If it is the later, I have content locked behind a special date, can a player change his device date to cheat on the game?

    Thanks!

  • It was first mentioned when beta 206 was released. In 2nd paragraph.

    Welp, thanks, that explains it.

  • Try Construct 3

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

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

    Is it only me, but since 2 updates ago, minifying the script when exporting to web takes 10 times more than before. Any ideas?

    Thanks!

  • Yes thanks for the info - I will hopefully be playing next time you are streaming!!

    You're welcome.

    I'm not the streamer btw, I made the game for him.

  • LaurenceBedford Hey, I took as a template a twitch integration that is around the forums, don't remember who made it, with you connect with websockets to twitch. Then, you listen for the commands:

    IF (Websocket.lastmessage == "!play" && username not already entered)

    Create chicken

    Set chicken.id to the username who sent the message

    Push the username to an array, so one person can't enter twice

    Then, if you want the user to controls its chicken, you pick by comparision, and pick the one with the name of the username, and do what you want to do :)

  • Hi,

    I made a frogger clone for a streamer, and you control it from the chat, I was inspired by the twitch plays games I've seen over the years:

    Subscribe to Construct videos now

    One of the most fun projects I've worked on :)

  • So, I'm receiving the text from a twitch chat into C3, but when I want to perform an action based on the letter I got, the if statement breaks and doesn't go through. I'm triple checking for it, for example, when I get the "a" letter, (I console.log, debug view and on-screen text), but it just doesn't passes the if statement. What am I doing wrong?

    Also, I tried with a number and a global number variable, I check for a 1 for example, and it does passes with a number, so there is an issue with checking for strings.

    Tagged:

  • Thanks! Works now.

  • Hi,

    So,I want to connect to the twitch api, and I need to set a request header, like this per their documentation:

    dev.twitch.tv/docs/authentication

    curl -H "Authorization: OAuth <access token>"

    And in Construct I try this:

    And this:

    But always get a "missing authorization token" message. Any Ideas what am I doing wrong?

    Tagged: