xlomid's Recent Forum Activity

  • Hi all,

    I'm trying to make a button in Construct 2 that shares the link to my game on Facebook alongside a logo/preview image. The built-in Facebook object doesn't do anything despite ostensibly having an action specifically for that purpose (i.e. nothing opens in the browser), but I've had more luck opening a URL using the Browser object. This is what the URL looks like:

    https://www.facebook.com/sharer/sharer.php?app_id=XXXXXXXXXXX&sdk=joey&u=" & URLEncode("chicken-road.bitballoon.com") &"&picture="&URLEncode("https://chicken-road.bitballoon.com/images/logo.png")& "&display=popup&ref=plugin&src=share_button"& quote=Description of the game here.&hashtag=#tags #arent #displayed[/code:31f8dg3i]
    
    While this does successfully open a Share dialog in Facebook, the image isn't displayed, despite me manually adding a meta property in index.html:
    
    [code:31f8dg3i]<meta property="og:image" content="https://chicken-road.bitballoon.com/images/logo.png" />[/code:31f8dg3i]
    
    The tags are also gone, but that's a much lesser concern.
    
    Does anybody have any ideas as to what could be wrong? For something as seemingly trivial as a Share button, this is sure taking a lot of time... Thanks for your suggestions!
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you both! Using dt on car movement only did the trick, and scaling is now as smooth as it was before!

  • Hi all! I'm working on a little road-crossing game where Sprite objects (cars) do not only move but also gradually grow bigger as they grow closer to the "camera" (imitating 3D). The way it works is every tick the scale of each car changes depending on their distance from the "camera" (i.e. their position on the Y axis):

    Every tick: car_lane1: Set scale to scale1+car_lane1.Y*0.0006[/code:1jhaq2pt]
    
    This is what it looks like, to give you an idea:
    [img="https://image.ibb.co/naGCba/chicken.png"]
    
    So, this works alright as a framerate-dependent game, but as soon as I try to use dt (by e.g. multiplying the value above by 60*dt) the cars start "shaking": changing their size uncontrollably many times a second (even as they generally grow bigger or smaller, depending on which direction the cars are going). Does anyone have any suggestions regarding why this may be happening and how to fix it?
    
    Thanks!!
xlomid's avatar

xlomid

Member since 7 Aug, 2017

None one is following xlomid yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies