danialgoodwin's Recent Forum Activity

  • Ric Bash, when you say the HUD layer is first, do you mean that it has the highest layer number?

    Also, one thing that is a common problem is that the Text object is not resized large enough to handle the text inside. In the layout view, try to expand the Text object so that it is much bigger than needed, otherwise no text will show when the Text object is not large enough.

  • exertia, nice game! You might want to move your preferred link to your first post so more people might click on that first rather than you other link.

  • Wow, I've been thinking that I like how this is a small community feeling. But, I might have to revisit my definitions of this soon!

    Celebrating 969,779 Construct 2 Downloads

  • Savvy001, would you mind posting your solution so that others can also learn how to do this?

  • slanw, would you mind share some code (or psuedo-code)? It may be easier that way to determine what is wrong rather than guessing. And, can you please be more specific on how your game "stops working"? Maybe there was a global/static variable that you didn't reset when the game started?

    My first idea for how I would do this is to add an instance variable to player for health. Then, I would put two conditions in the event: 1) On collision, 2) Every 1 second. And then, the actions would change opacity and instance variable value.

  • iceFlashEX1, the common method to add an infinite scrolling background is to create a Sprite object twice as wide as the layout, and add the bullet behavior. Then, once the Sprite object has moved halfway off the screen, you move it back to the original position.

    Caveat: Depending on where exactly your background repeats, it may not have to be a full 2x layout.width. You would just move the sprite back to the original position whenever it reaches the repeat point.

    Though, actually, now that I think about it... you might just be able to use the Wrap behavior with a single sprite with the bullet behavior. It'll be a good experiment to try.

    I hope this points you in the right direction.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Kniggles, the main way I would use to compare text is to use the "Compare text" event that is available in the Text object.

    Though, you could also use the System."Compare two values" event for the text. But, I recommend the first way instead.

  • Kniggles, in a single event, I would put two conditions. First, compare the first Text instance to the second one, then compare one of those to the third Text instance.

  • Ainxty, in the project properties (found by clicking the project title in the projects bar) make sure you have a "Fullscreen is Browser" option picked that is "Scale outer" or "Scale inner". The default "Letterbox scale" will show black bars on the edges.

  • and then said

  • If you want a game to be fast, then have it do less work.

    elafreat, one idea is to detect what the current FPS (frames per second) is and reduce the number of objects on the screen if the FPS gets too low. Another idea is try to do the least amount of actions on every tick, which one way of doing this would be to use the System."every X seconds" instead.

    And then, perhaps not the most fun method, read through the entire C2 manual to learn many new things, and there are some great tutorials with even more tips and tricks.

  • Tekniko, do you have a link to your blog?

danialgoodwin's avatar

danialgoodwin

Member since 24 Dec, 2012

None one is following danialgoodwin yet!

Connect with danialgoodwin

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies