fredriksthlm's Recent Forum Activity

  • Sorry, didn't find that topic before.

    Thank you!

  • 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

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

fredriksthlm's avatar

fredriksthlm

Member since 6 Jun, 2016

Twitter
fredriksthlm has 8 followers

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • RTFM Read the fabulous manual
  • x42
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x10
    Lightning Draw First person to up-vote a new Construct 3 release
  • Email Verified

Progress

20/44
How to earn trophies