Kiyki's Forum Posts

  • Ok I have found my issue. I'm going to leave it here for all of you just in case : I had an HSL effect on my sun to change its colors but it seems to not work on windows at all as you saw.

    Sorry for wasting anyone's time

  • Hi there,

    I'm currently making a space experience for a client and I'm stumped.

    I work on Mac and on Firefox/Chrome and it works great but when I test my html5 export on windows my elements that are supposed to pass behind juste don't and there is a weird black line around it. I had made a v1 where I had those elements that passed behind but it worked fine and the code didn't change.

    I could use some help.

  • Hi !

    I'm currently trying to make navigation using zoom/pan with mouse and I would like to make a zoom like in most software like photoshop or figma which zoom onto the mouse.

    I tried with the Scroll to X putting a lerp from the centre of the screen to the mouse and it kinda works.

    My problem is that when Layout Scaling for the zoom the Mouse actually stays in place relative to the zoom/viewport and so the cursor is not on the object that I was zooming anymore but to his right or left and so it offset my zoom.

    I think my problem is how does the mouse stay on the object relative to the layout scaling when the mouse doesnt change place but its the layout that changes

    For information a screen of the events and the capx :

    we.tl/t-rYDAqKFJSZ

  • Thank you so much ! It works ! I just ajusted the /10 into *3 or the planet barely turned but it work so well and it's so simple :)

    Thank you again !

  • Hello !

    I found this very helpful topic : construct.net/en/forum/construct-3/your-construct-creations-9/example-mesh-distort-sphere-161470

    And I made a kinda planet on starry sky. I would like for it to be able to turn with touch swiping/holding in the most natural way possible.

    I tried multiple things with Touch.SpeedAt(0) but I don't seem to find a way were it doesn't do weird things when going slowly while holding touch.

    Here is my project : https://drive.google.com/file/d/1bDas1M6ue3wL0H10gzIhcEIYcFxDBjfQ/view?usp=sharing

    Thank you !

  • Very sorry. My bad :/

  • Nevermind seems to works after the 4th export. Seems to be the minify script with Java that caused problems works if exported without it.

  • Problem Description

    When exported html game does not change layout (in local or in drive), it freeze on the last image before changing and nothing happens. But it works perfectly in preview.

    Attach a Capx

    Can't it's for a contest

    Description of Capx

    A prototype of a game

    Steps to Reproduce Bug

    • Step 1
    • Step 2
    • Step 3 etc.

    Observed Result

    Doesn't go to next layout stay on last image, music continues

    Expected Result

    To go to next layout

    Affected Browsers

    • Chrome: (YES
    • FireFox: (YESNO)

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

  • So after long hours of search and tries I still do not know how to destroy the facebook session. I tried with the local storage to clear it at the end of the game but it doesn't seem to work.

    If anyone can offer help I would be grateful, in 4 days it will be too late and I am not sure to find it in time. I will still continue my search, hoping someone had the same problem at some point.

    Tahnk you !

  • So after a little bit of research I found that it could be because of the API calling for facebook just after the log out. The only topics I found where related to the API and not the facebook object from construct 2, On those people say you have to destroy the facebook session on your site and that there is no need to log out the user from facebook.

    So I was looking for how to destroy the facebook session but I found nothing, I think the login info could be stored somewhere and that he could be deleted. Anyone know how ?

    I will continue my search but I really appreciated your help if someone knows how to do this. Log out from my web browser game without really login out of facebook.

    Thank you !

  • Si I'm not sure it's a bug more than my poor understanding of code, but I have a problem with the facebook object.

    When I am logged in, all is well I prompt to share...etc but every time I try to logout I have a Javascript Error.

    Javascript error!

    TypeError: response.authResponse is null

    http://localhost:50000/Facebook_plugin.js, line 115 (col 4)

    I'm not really a dev so I don't understand what is the problem. I made sure the player had to be logged in to be able to log out. Is it because I am in localhost ?

    Also unrelated to that error but is it possible to choose where the facebook dialog for login and share is going to appear ? It is always appering one the edge of the screen, which is not really good.

    Thank you for your time and your help !

  • Waaah, thank you very much I will try that. Sadly ryanrybot you formula was as good as mine. Maybe this one will do the trick !

  • I will try that. The pixel rounding was making the platform behavior jump, without pixel rounding it already way better but the lerp as still some issues and it shakes object that are pinned to the player, I guess the player is shaking also but it's almost unseeable.

    I had tried alreayd with a camera sprite but I had the rounding ON so I will try that again. COuld you juste take me through what car.platform.vectorx /0.8 is doing ?

    Thank a lot for your answer and your help

  • So I come here because I have a similar problem. I tested it in 4 different browser and 5 different computer and when pixel rounding is ON the camera is shaky but only when I have a lerp, with the behavior scroll to or the event scroll to object/position: player.x, player.y it does not shake at all even with the rounding on. I even tried with Magicam plugin and it has the same problem as Lerp.

    Even with Pixel rounding OFF and lerp it is still shaking a little bit when changing state (idle to run) and then stabilizes when at full speed or not moving for exemple.

    The Pixel rounding is definitly affecting the scroll or platform behavior making it shaky but it can't only be that because it is still shaking a little bit with lerp (less but still). I'm going to try a few things I saw in this topic but if anyone found a solution or something I would be very grateful.

    Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So after trying more I found some things. First the pixel rounding was On and by putting him on Off it seems it trembles way less.

    It still trembles when the player change state (moving to not moving, vice versa, jumping to falling...Etc), but it become stable when it reach it's peak. I'm still trying to figure how make it so it doesn't tremble at all.

    I'm still taking any advice or knowledge that you would be nice enough to impart me with. I also tried Magicam plugin but it is exactly the same as Lerp expression without as much control on what your camera does, so not a good solution anyway.