fredriksthlm's Forum Posts

  • Kyatric or Ashley , is this possible in Construct2 right now. To prohibit the screen from sleep mode? (Maybe I just missed the functionality)

    Otherwise, possible to implement the function into a standard action? Or is this to be set in the XDK somehow?

    From Android developer I know there is a flag called FLAG_KEEP_SCREEN_ON

    getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    to disable the screen timeout and
    
    getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    to re-enable it.[/code:16lr9z3b]
    
    Explained in detail here:
    [url=https://developer.android.com/training/scheduling/wakelock.html]https://developer.android.com/training/ ... elock.html[/url]
  • When the screen hasn't been touched for some time it goes black/into sleep mode. The time it takes depends on the settings in the phone. Called Screen timeout (I guess, my phone is not in english though)

    Can that be controlled by an app? the timeout period is a timeframe from last time you touched the screen.

    But I am playing with a game that you controll with the gyro. you do not have to tap the screen. But then the phone always go black after 30sec since you do not touch the screen... Possible to force it to be awake while in a certain app?

  • Collection items? Not possible just to use variable..? Knife=1/0 etc

  • Try Construct 3

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

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

    I am making a sidescroller space shooter sort of. With gyro steering of the ship. maybe one Endless/infinite mode- and one mode with levels.

    I need a little help to find a good title. Something that relates to gyro, space, gravitation, future, dungeons, speed, shooting.......

    print screen of Gradius (obviously NOT my game, but for an idea of how the game is!)

  • Hi,

    I am building a cordova Android mobile game and want to build a high score and achievements game.

    The game is a sidescroller shooting game, steering with gyro. The game (one mode at least) is "endless playing", making higher score as longer you can last. faster and faster sort of...

    So a high-score table is a sort of "must have".

    Right now I have build a game with php/sql posting /reading. But starting to feel that this is not the best solution for me.

    Now my solution means that you do not have to log in to anything (which is quite nice), you can just post you high score as you want, in any name you want. And the high score table can be designed and integrated as I want. Very nice looking. But at the same time it actually do not feel that nice to have an app posting whatever to my private php db. Also people can post what the fuck they want. like Hitler/fuckface or whatever... and that do not feels right!

    So what's the best solution now?

    GooglePlay or Facebook?

    The official plugins does not sem to work perfect for mobile games? And cranberrys plugins? Are they both perfect?

    According to another thread cranberrys GooglePlay games can't even fetch hingscore as integrated data, only open in a googleplay layer/skin (ugly as fuck)

    GooglePlay is only "anonymous" made up names, FB is peoples real names? Can both plugins fetch public leaderboards or only from contacts/friends?

    Ideas? Anyone made a android mobile game with high score table I can take a look at?

  • I am also intrested in this one. Are you making a web-based or mobile/app/cordova game?

  • Ok cool.

    I just read that in the manual too. That the official should work just fine, with the correct parameters set. But doesn't seem like anyone has made a tutorial yet..

    I will see if I have time to look into it. It would be so cool to have the high scores in the game, with same theme. and not open the google play UI thingy.

    (Now I am using PHP-server solution for a really cool highscore table built in. But it feels a little bit scary to publish a game that will call a private sql db all the time..

  • Ok, thanks. Quite disappointing to hear. (not your fault of course!)

    Just a quick question then, what is the disadvantage of using the official google play plugin? Since it actually has more features and is included in environment from start, it would be better?

  • Hmm.. okay. Then Cranberrys plugin is more limited than the c2 official GooglePlay plugin then?

    Since in the original plugin you have this action:

    Request hi-scores

    Request a hi-score list for a given leaderboard. Scores can be returned for public results, or "social" (from users connected to the currently signed in player), and a time limit can be applied such as to return only the day's best scores so far. The top type returns the very highest scores, and the window type returns the scores around the current player's own best score, allowing them to see where they appear in the rankings.

    And then you can use these expressions for instance:

    HiScoreAt(index)

    HiScoreFormattedAt(index)

    Return a numerical value, or formatted string, for a score at a given index.

    HiScoreNameAt(index)

    Return the name of the player associated with the score at an index.

    But that is not possible at all with cranbberys? cranberrygame

  • In your game Match3, I can see that you fetch your own high score into the game, but the leaderboard button just opens the GooglePlay screen, with the different leaderboards.

    But in this template, is it possible to fetch the high score lists (different lists like, best of the week, month, ATH, etc) with names and scores into the game itself. Without just opening the GooglePlay screen.

    From the manual for the official GooglePlay plugin that seems to be possible to do.

  • no ratio fits all screens. to have "to low" or "to high" ratio just tells where the black area will be. it depends on where you prefer.

    but read more in the manual. it might be possible to have a perfect solution for you if you redesign your game a bit maybe search for fullscreen scaling

  • "the local top ten", would just be their own name ten times? Or am I missing something here...

  • there are no ratio/resolution that will fit every screen, especially if you need something to bounce exactly on the "wall"..

    so you have to decide how it will "cut" it. read more about the settings. scale inner, scale outer, letterbox etc etc.

  • When exporting my game to landscape the game is landscape, (tilting mobile to left from portrait). And as you say, the game is locked this way, not flipping while flipping the mobile. So I see the same thing as you do.

    But I do not see this as a problem at all.

  • I tried your demo. The gameplay is actually quite good.

    But I think you will need to improve the artwork. It is just not good visually..

    Also visual effects like flashing lights and stuff.