DevDan's Forum Posts

  • oh sorry I thought I read infinite jumper not endless runner lol. my mistake!

  • Hi Astroboy,

    From looking at the infinite demo example, you could try adding the highlighted parts below in it as a start...

    However you setup your quiz response, I just put touch sprite to test in this case:

    Cheers

    Good luck!

  • Thanks Ashley.

    I've used these two tutorials to overcome this for Twitter and Facebook, if anyone else experiences this issue too:

    https://www.scirra.com/tutorials/908/fa ... php?page=2

    https://www.scirra.com/tutorials/927/tw ... ser-object

  • Hello

    Can you Move to SD in android apps settings in C2?

    Is it technically possible do you know? Get comments the apps take too much space?

    Thanks

    Dan

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So mines pretty simple, not sure if it is the most efficient method. runs smooth on my S3.

    First I setup if the Black Tile touched is the lowest Instance UID, as you can't touch any other black tile until the lowest is touched first.

    Set instance vars on black tile: IsLowestUID = bool false. InstanceUID = 0

    BlackTile object - Pick Instance with lowest IsLowestUID -> set IsLowestUID to True

    Else

    Set to IsLowestUID False

    Create GameMode global var as text.

    Create GameOver global var as number=0

    Create ClassicMoveTiles global var as number = 0.

    Then on touch blackTile:

    On Touched BlackTile and BlackTile Is IsLowestUID and GameOver=0->

    Subevent ->

    GameMode ="Classic" -> set ClassicMoveTiles = 1

    System Every Tick ->

    Subevent ->

    GameMode="Classic" and ClassicMoveTiles=1

    -> set y to background.y + tilespeed

    -> set y to blacktile.y+ tilespeed

    -> set y to whitetile.y + tilespeed

    Subevent again ->

    Background y>=0 -> set ClassicMoveTiles = 0

    -> set background y to -195.1 (this value depends on your bkground object position, have to play around)

    -> call GenerateTiles function.

    On touch WhiteTile and gameover =0 with trigger once -> set whitetiletapped=1 and gameover=1 (or call your gameover code)

    If they didn't hit a whitetile and just missed the black tile past the screen, flash the tile they missed:

    System Gameover=1 and whiteTiletapped=0 -> set y to background.y-200. set blackTile to blacktile.y-200, set whitetile to whitetile.y-200

    subevent -> blacktile pick instance with lowest InstanceUID -> blacktile flash

    hope that all makes sense i've quickly typed it out. pm if need any other help dude.

    cheers

  • I created GemTap game on playstore which is same as don't tap the white tile games:

    https://play.google.com/store/apps/details?id=com.mrcoparmsgmail.com.gemtap

    I created 4 sprite objects as my tiles outside of the layout up top. Once lined up i setup a 4x1 array with the x-coordinates of the 4 sprites. set tile y value to a variable say y-coord

    set tilespeed = 7

    on every tick -> set y of tile object = tile.y + tilespeed

    at a point when you need to generate the next line of tiles (I detect when my background behind the tiles y value reaches -195) call a function to generate the next line of tiles:

    create tile at (array(i),y-coord) with i=0 to 3

    maybe i can write up a tutorial on how i did gemtap if it would be any benefit or interest to any one

  • Heaps of ways to do this. Try https://www.scirra.com/tutorials/449/create-a-proper-healthbar

    or something simple like this:

    Create sprite object for the bar with width=100. set origin image point to left.

    Create variable Grow = 0

    On Start Layout -> set sprite width 0

    mouse click on button -> set grow = 1

    Every X Sec and Grow = 1 -> add 1 to sprite width

  • Hi All

    Just received an email from Samsung Seller Office, from 1 July you have to submit an app using their Samsung SDK to the Samsung app store. Does this mean we can't submit our C2 built apps on the Samsung app store anymore?

    Dan

  • Problem Description

    A couple issues, the first was with R169, after pressing the Twitter button on an Android device it would open Twitter in Full Screen and you can not go back or close without ending the task. Maybe the 'Open In New Window fix' (introduced in R169) could be applied in this case for Twitter?

    I wanted to test the above issue with R170 build but now the Twitter button is not displaying on Android OS Crosswalk build at all.

    Apologies if this is not a bug!

    Attach a Capx

    Just a blank empty capx project with twitter plugin added.

    Description of Capx

    twitter button added

    Steps to Reproduce Bug

    • Step 1 Start New Project -> Blank Empty Project
    • Step 2 Insert new object -> Twitter button
    • Step 3 Leave Twitter Properties as Default (including Initial Visibility: 'Visible')
    • Step 4 Place on layout anywhere
    • Step 5 Open Intel XDK (build 0876) -> Start New Project
    • Step 6 Save C2 Project then Export using Android (leaving default export options)
    • Step 7 Refreshed File Tree in Intel XDK -> Go to Emulate Tab -> Noticed no Twitter Button
    • Step 8 Build using Crosswalk for Android
    • Step 9 Test the ARM Build on Android device -> Noticed no Twitter button

    Observed Result

    No Twitter button displayed on Intel XDK Emulate or Crosswalk for Android (ARM) Build

    Expected Result

    Twitter button displayed.

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (NO)
    • Internet Explorer: (NO)
    • Only on Intel XDK emulate and Android OS (S3 with 4.3)

    Operating System and Service Pack

    Windows 7 SP1

    Construct 2 Version ID

    R170 64-bit

  • Looks addictive

  • Awesome! Still trying to get past level 4 lol

    how did you enable the move to SD option in application settings? I didn't think that was possible with c2?

  • Great game, i like the concept. It's got good addictive potential and the music suited the gameplay.

    just one thing I couldn't press back button to exit.

  • Hey everyone,

    I have created a few apps with Construct 2 - Crosswalk, since purchasing it in February. Still learning the art of creating a good game. It is a bit hard not being much of an artist and having a full time job! But have a look and test them out Thanks to Scirra/Ashley for a great product and support, it's good fun creating these games!

    1. Flappy Hippo - my first app - another flappy bird game

    2. Gem Tap - my latest one - similar to Don't touch the white tiles. This one I like the best even though it was the simplest to create just in a few days.

    3. Kitty Rescue - My third app, I tried to experiment with physics/ragdoll effects picking the kittys up and dropping them in a basket, using the force=ma as a measure how hard they are placed in the basket. It is kinda hard to play if you don't read the steps in the description

    4. Grab 'a' Bug - little platform game, your a purple spider and just collide/pick up bugs and feed them to the black mother spider. Used some physics on the trapdoor.

    Check them out here from Google Play Store:

    https://play.google.com/store/search?q=pub%3A%20MrCopArms

    Thanks,

    MrCopArms (aka DevDan)