Xindaris's Forum Posts

  • 3 posts
  • Okay, wow. I wasn't entirely sure what hotspots were for--I knew they centered the image for animations, but didn't know they actually defined the location of the object. That clears it right up. Thanks again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay, I did that for the death animation and it works now. I suspected that was the issue with the health bar but I don't quite know how to fix it...make it update less often, maybe?

    When the camera scrolls and a layer is pulled with it, the current x position of the objects in that layer change, right? Because otherwise I don't need to do the location thing at all.

    Anyway, here's the file I've been working on.

    Thank you for helping me with..probably some obvious questions here.

  • Okay, so I'm just sort of trying to learn the ropes here. Without worrying about graphics or sound whatsoever, I'm trying to put together a rudimentary system for a sort of platform RPG. I've run into a few snags just trying to make the system that damages the player for colliding with a specific object, shows the health bar decreasing as the player gets damaged, and kills the player if health reaches 0. Here's what my event sheet looks like:

    https://dl.dropbox.com/u/38127999/depr.PNG

    This kind of works, but it has problems:

    1-The health bar refuses to stay in the correct spot when damage is taken. That is, event 1 is supposed to "save" where its farthest left point is, change its width to match the player's HP, and then put its farthest left point in the same spot after the width is changed, but it seems to sort of jump to the right a bit anyway.

    2-The player is supposed to get knocked back a bit by damage. This works fine coming from the left, but coming from the right it's completely broken. The player gets knocked left no matter where he is.

    3-When the player's HP hits zero, the sprite is switched to the death animation, but then the player is fine until he hits the enemy once more. THEN the death animation plays and the player is destroyed. (The destroy is a placeholder for possibly an attempt to load the last save or make a game over menu or something, but that'll come much later).

    Is anyone willing to help me out?

  • 3 posts