GameThirsty's Forum Posts

  • Hi everyone!

    I have ran into a problem, I am trying to add a value to the X axis of an array, I want to add this value to the next empty element inside the array.

    Example: Each X element is marked a "[]"

    How could I add a value to the 4th element where it is blank?

    [11321][127556][456546545][BLANK][BLANK][BLANK][BLANK][BLANK]

    I know how to insert values into the array if they are fixed, but what if this array is dynamic? After some values have been inserted.

    Summary:

    How do I add a value to the NEXT AVAILABLE blank array element.

    Thank you

  • I have been in contact with IntelRobert, over the past months and he recently announced that Crosswalk team is working on Facebook.

    The ETA is 'before May'.

  • On my games, I always make my layouts smaller than actual screen sizes. I then use scale outer everything works as promised.

    It may expand my sprites a bit, but there is no notable difference in image quality.

  • Your screen sizes are different on each device. Read this:

    https://www.scirra.com/tutorials/73/supporting-multiple-screen-sizes

  • I don't think off screen objects get rendered, so there is not much of a performance hit to have them around (but it is still having to loop through all of them every tick and calculate their position).

    If you delete all the ones off screen you may also be deleting new ones you are setting up to scroll onto the screen. So, you may want to do something like Sprite.X < -100 then sprite Destroy.

    (obviously you have to factor in the width of the platforms to make sure they are completely off the screen)

    I believe this is not true. For "sprite is off screen -> destroy" I believe it just deletes that instance of sprite.

    Another workaround is create a boolean variable "onScreen" and once the sprites are set on screen, make that instance boolean to true, then once its off the screen check to make sure that the boolean is set to true before its destroyed.

    Kind of a workaround, to check to make sure that the platform has made its course of being on screen.

    ->Sprite is off screen

    ->Sprite OnScreen is set to True

    • destroy
  • There is a trigger:

    Sprite -> Is Outside Layout

    • Sprite Destroy
  • Hansokumake

    Some 3rd party plugins could cause a conflict.

  • Inside project properties, there is a full-screen scale option, make sure it is set to 'yes'.

    What I mean about high res images, make sure when they are created, make them very high resolution, it is okay to have large images and shrinking them down then to use small images and making them bigger.

  • Try Construct 3

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

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

    Do you have 3rd party plugins being used inside your project? (ones that did not come with Construct 2)?

  • Somewhere if I am not mistaken, there has been discussion for Google Services being added in the future. If this is true, I think it was Ashley that was discussing this topic.

  • What are you using to export? AppMobi, CocoonJS or Crosswalk?

  • Tablets with different resolutions might be your issue. Have you tried enabling "pixel rounding" in the C2 project properties?

    Might also want to check to make sure full screen scaling is on as well.

    Also, try to remember always make your images as high as resolution as possible, you can always shrink images, making them bigger does not always pan out.

  • If I were you, I would use this user made Facebook plugin, it has many more features than the one that comes with Construct 2. Here you can specify permissions in events.

    https://www.scirra.com/forum/facebook-advanced-0-31-scores-fixed_t79106?&hilit=facebook+advanced

  • pauliepaul1

    I am slightly confused. Is it the permissions inside the game when you log in with Facebook? Or inside C2?

  • what is "id_user"? You didnt specify what the value of id_user is, so it will return null. You are selecting something that doesn't even exist, which is selecting " ", an empty value.

    You will need something like this:

    $id_user = $_GET['id_user'];[/code:cj5ztuez]
    
    Within Construct, you will need to add that parameter to your request URL to something like this:
    
    [code:cj5ztuez]Request "http://localhost/mygame/myscore.php?id_user=" &WHATTHEUSERIDIS" (tag "MyScore")[/code:cj5ztuez]