LaDestitute's Forum Posts

  • Here, take a look at the health bar in my project.

    Capx

    I'll see if I can whip up a custom capx for you tomorrow, alright?

  • Fixed the bug, but I still like to know if such an expression exists.

  • Are you sure your not forgetting to add the destroy function after their hit by the strike or whatever?

  • Is there a system expression for accessing the "current" value of a global or local variable? No, not the value initially when the first layout is run. I mean accessing the current value when an event is run.

    Because, I made a HP bar using a global variable, some expressions and and width adjustments via events every tick. I only came across one bug from 20 minutes of testing:

    Player starts out in layout one.

    Player takes damage.

    Player moves to layout two, via portal; HP bar doesn't change.

    Player moves back to layout one via same portal; HP bar suddenly becomes empty.

    My capx file

  • Cyblarg.capx

    Sorry to double post.

    I managed to get it working in the game me and my friends are working on but I noticed some very bad flaws.

    While the platform (the middle blue one) performs well when continiously moved on without leaving it or falling over, the player can abuse certain methods to avoid the platform disappearing.

    Some examples:

    If the platform is in the middle between two other platforms, the player could easily jump from the first to second (vanishing) to third (therotically, if they make multiple trips back and forth) without setting the middle one's function off. This also works if they simply jump from platform A (normal) to platform B (vanishing), run across it and then jump to platform C (normal). Nothing happens even if they do this repeatedly.

  • Briefly commented capx

    Thanks dude!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How would I create vanishing platforms in a side-scroller context? As in, a platform sprite that will vanish if stood on too long and then respawn shortly after vanishing.

    I thought of using x-y coordinates as a condition, but I'm not sure how to get them to be paired together instead of as just separate events.

    I also tried the on collison with player, but the platform vanishes when the player touches the bottom or sides. I don't want that.

    I also tried the "on platform?" condition, but that didn't work so well. >_<

    Project link