twg's Recent Forum Activity

  • I have a sprite with Browser>close event on touch that works fine on Android and browser, but in my compiled iOS build it doesn't work at all. The only way to exit the game is the home button, is there any way to exit/quit the game on a button touch on iOS?

  • Post your code or capx.

  • The question now would be, does the preview share the same folder as the export?

    Are you asking if I'm exporting the same one that I'm previewing? Yes I am.

  • I have some global variables that I save in Webstorage for sound toggles, initial value of the variables are set to 0(on)and can be changed to 1(off) with an On Touch event. When I test in browser & CocoonJS launcher everything works correctly, but when I export the game and compile an APK with CocoonJS and the game is installed on a device, the 1st time the game is ran the variables are set at 1 for some reason, if I check the options toggles and turn them on setting them back to 0(on) the settings stay fine from then on when you reopen the game, but it's just that first install the variables are set to 1 so the sound if off by default. I triple checked the variables, they always start at 0 and they can only be changed with an on touch event that is on a completely different screen, not sure what is happening here.

  • Ok well nevermind this, I got everything working by making a FB app and using that instead of this sharer and was able to call as many variables as I want without the need for the php.

  • Aren't you missing a "&" in your URL string between both parameters?

    The final string should be

    https://www.facebook.com/sharer/sharer. ... /share.php? score=1000:0&level=3:1

    for example. You need to put the "&" before level, like so:

    "https://www.facebook.com/sharer/sharer.php?u=http://www.mysite.com/share.php?score=" & highscore & ":" & random(1,0) & "&level=" & levelsCompleted & ":" & random(1,0)

    Also, you should use a larger random range (like 1 to 10). The whole point of using the random function there is to make sure that facebook gets a new URL every time and doesn't use the cache

    Just gave this a try and it didn't work, only the 1st variable shows up in the FB post, the 2nd variable is still blank. It's like I'm not targeting the 2nd variable right in the syntax in C2 for it to be able to get read by the GET in the php. I've tried the way you suggested "&level=" & levelsCompleted, tried it with just "level=" & levelsCompleted and nothing works, there has to be a way to get this to work.

    Also the (1,0) was actually a typo, I am using (1, 10).

  • This may not work but it's probably worth a go. Try putting the url into a string variable first and then open the browser object with that variable in a subsequent event.

    I have no experience with php so can't help on the rest I'm afraid.

    Tried the string but couldn't get it working with the php.

  • Bump, really stuck on this, can't figure it out.

  • Followed 's tutorial for a Facebook share button, and got it working fine to show a highscore variable on Facebook, I'm trying to display 2 variables in the Facebook post, highscore and the level they were on and just can't get it working. In my .php file I have

    <?php

    $score = $_GET["score"];

    $scorex = explode(":", $score);

    $highscore = $scorex[0];

    $level = $_GET["level"];

    $levelx = explode(":", $level);

    $levelsCompleted = $levelx[0];

    ?>

    <html>

    <head>

    <title>Site Name</title>

    <meta property="og:title" content="I got <?echo $highscore;?> on Level <?echo $levelsCompleted;?> in this game!"/>

    <meta property="og:image" content="http://mywebsite.com/game.png"/>

    <meta property="og:site_name" content="Game Title"/>

    <meta property="og:description" content="I got <?echo $highscore;?> on Level <?echo $levelsCompleted;?> in this game!"/>

    </head>

    <body>

    <meta http-equiv="refresh" content="0;URL=http://www.mysite.com" />

    </body>

    </html>

    Then I have this code on my on touch event/browser event

    "https://www.facebook.com/sharer/sharer.php?u=http://www.mysite.com/share.php? score="& highscore & ":" & random(1,0) & "level="& levelsCompleted & ":" & random(1,0)

    The highscore works fine but I can't get the levels to show up, not sure if it's the .php or my browser event is wrong. Any help would be appreciated, thanks.

  • Well the levels for Circuit Dash are finally done! We ran into a few minor technical difficulties and one major one being the scaling for 4:3 devices(Damn you iPad, jk we love you.), basically we had to rescale the entire game and redesign the 40 levels that were already done before finishing the last 10 levels, it was a pain in the ass, but nothing about 60 hours of work in 5 days couldn’t fix.

    There are 50 levels total and with the 4 levels of difficulty it should be fun and challenging(or rage inducing, see pic above) for players of all skill levels.

    There is still a lot of work to be done with the leaderboards, play testing across multiple devices, polish etc, but everything looks to be on schedule for releasing this month, assuming the submission process goes smooth, we are hoping to have it on the App Store, Play Store and Amazon by the end of the month, we will announce the exact date in the coming weeks.

    We’ll leave you with a couple screenshots from some of the new levels.

    Again you can follow the game here or at IndieDB http://www.indiedb.com/games/circuit-dash on Twitter https://twitter.com/Patrick_NoD or our website http://nothingordouble.com

    Peace out yall.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm using an Arial bold font text to display variables in a project, whenever the text is rendered in browser or in CocoonJS launcher the quality of the text is coming out very low quality with a jagged almost pixelated look. What could be causing this or is there a fix?

  • Looks kinda interesting. I like the minimalistic design:)

    When can we play it?

    Thanks, should be out in app stores within the next month, might release a html 5 demo you can play with keyboard not sure yet.

twg's avatar

twg

Member since 14 Feb, 2014

None one is following twg yet!

Connect with twg

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies