ArcadEd's Forum Posts

  • I'm not sure if this it what you are asking or not.

    Global variable StartX, EndX

    On Touch Start set touch.x to StartX

    On Touch End set touch.x to EndX

    Compare StartX and EndX

    Or is it going to be using Y coordinates as well?

    In that case, you could create a hidden sprite at Touch, then create a hidden sprite at touch end. Then check the distance using the distance expression, then destroy the two hidden sprites.

  • I shrunk the detector sprite down to 24px from 33px and it started working. I think the issue is having the detector the exact same size as the good and awesome blocks.

    Maybe play around with that?

    If that doesn't work you could use the distance expression to check how close the detector is to the center of the block when the key is pressed.

  • Added a new video course for creating an infinite flyer type game. (Jetpack joyride, blot, etc).

  • When the level ends, add time to your score variable. Is that what you mean?

  • Just finished up a new course. Check it out if you are interested in making an infinite runner/flyer game and you are a beginner to construct.

    Infinite Flyer Course

  • Maybe something like.

    If Mouse.X < Player.x Then Mirror

  • <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/d3b190f2-2b39-4833-bab6-799b3ed90c9c/2013-05-29_2142.png" border="0" />

  • What Vee41 says. Plus, make sure your array Height and Depth are at least 1, even if you are not using them. Having them at 0 caused me similar issues in the past.

  • Use the & not +

  • Actually my next tutorial series will be just that, but in the mean time maybe my spawning enemies tutorial will help?

    construct.net/en

  • Sulli

    Haha, I hate that!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your Hero sprite is a 2 frame animation. The collision box on both frames doesn't match up, take a look at the collision box on frame 1.

    That's your answer ;).

    <img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/3771d9e8-c7d5-4be0-aaf7-759f2e6b454a/2013-05-29_1432.png" border="0" />

  • First off, you don't want to reset your global variables unless it's game over.

    Start off by setting your global variable LIVES = 3

    Then when the hero gets hit, remove one from LIVES and update the text box.

    After all three are gone, game over.

    See this updated capx

    https://www.dropbox.com/s/ouizqwd4kp87f24/alexkidd.capx

  • Hah, no worries man. I knew we would get there ;).

  • Well it is, but you are not updating the text box to show it.

    Right now, if it's at 0 when you start a game, you play, get a score. Then at level or game over, the highscore is set to the score because it was at 0 and the score is higher.

    To test it try this. Play the game and get a high score.

    Restart the game and get a lower score, the old high score should still be shown.

    Now, hit H.

    Restart the game and get a score that is lower than the old highscore, it should show the new score because you reset the highscore to 0 before restarting.

    I know, it's hard to explain :).