frostyelk's Recent Forum Activity

  • Instead of using a "Healthbar" you should use a sprite with several frames or several animations, where each frame or animation has one heart less than the other. Then when the character gets hit you set the frame to correspond to the amount of lives left.

    Another idea, would be to have one heart-sprite per life, and make it visible or non visible.

    About the event sheets, you can include event sheets in another sheet. See more here: https://www.scirra.com/manual/121/event-sheets

  • If you save the project you will get the .xml files in folders. If you have saved as a .capx you can open it with WinRar or similar.

  • The first thing that comes to mind is to use variables to control if the player was moving or not before he fell.

    ex. On Move left, set FALL_ANIMATION = 1. Player not moving set FALL_ANIMATION = 0

  • Thanks! The link works....

    But i cant find any problem.

  • I am getting a 404 not found for cordova.js on that page you linked to!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem with Save´s is that they save everything and remembers where you where exactly when the SAVE was made.

    So you need to use WebStorage instead of saves and just save the variables you need and not everything.

    https://www.scirra.com/manual/120/webstorage

  • Not really sure i understand your problem.

    I am guessing that you want the player to get new lives after X amount of time?

    In order to do this you need to know what time the player started to play the game, and what time the player stopped playing the game.

    You then need to check if X time has passed since the player played last time. Best way to do this is to use real time, i have used UnixTimeStamp for this and saved it in a variable.

  • Impossible to say without more information.

    -Are you using any non official plugins?

    -Does the compile log in XDK look ok?

    -Do you use minify on export from construct2?

    -Does other games work for you on export on your device(try a simple demo project and see if that works out of the box on your device)

    -Do you see any error in Chrome in its Console? (press F12)

    There are a thousand things that can go wrong....start simple and test often!

  • In After Effects you can export the animation by using "Frame by Frame" to png. That will render each of your frames in AE to a single PNG file that you can import into Construct2 as a animated sprite.

    Then you can just set the sprite to play that exact frame you need when a certain condition is met.

  • Crosswalk enables WebGL stuff to be used. Without Crosswalk your app will run a lot slower. But instead you get a smaller package.

  • My suggestion would be to use an animated sprite and just show the certain frame when needed.

  • Another way to keep it inside the boundaries is to use the Behaviour "Bound to layout" on the object.

frostyelk's avatar

frostyelk

Member since 21 Feb, 2014

None one is following frostyelk yet!

Connect with frostyelk

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies