aerger's Forum Posts

  • Just uploaded my first video to the academy!

    Subscribe to Construct videos now

    Very excited for other videos to come!

    Your videos are some the best of the Academy series so far, alongside Kyatric's. Please keep them coming.

  • When you set the opacity to 50, also set a timer for 5 seconds. create another condition to check for the timer going off. In this condition, reset the opacity.

  • If it's a physics object, you can change the bounding box shape in the physics properties, too (but only to one of a few preset shapes, including a circle; no triangles, tho, iirc).

  • Essentially, every condition is an if statement.

  • Something like this, maybe? I removed your variable from this, but maybe you still need it for something else, I don't know.

  • When I went to reply, random picking what I was thinking/planning, but when I wrote it out, something else came out. It was late. Good catch.

  • You just need to make sure you have the entire event selected, not just a single item in the event box. Right-clicking anywhere in yellow, as shown in this image, will select the entire event. You then just select Add -> Add sub-event (S) or Add blank sub-event (B), and you're done.

    Not so hard.

  • So possibly just this, then?

    You can then just subtract TotalAttackValue from EnemyHP (and then probably reset TotalAttackValue and your other attack variables back to 0).

  • I think we're getting closer, but I'm still not sure I'm completely understanding what you need.

    I do think we have a bit of a language barrier, but I would not give up and say what you want to do is not possible.

    So you have three attacks, each triggered by its own key press. The total value of all three attacks is displayed.

    What do you want to subtract from the enemy's hit points? The sum of all three values, or do you just want to subtract ONE of the three values from the enemy's hit points?

  • I liked Pascal better than the object oriented Delphi. I remember BP6 and the apps I made with that version. Long time ago though. Programming has sure changed a lot since then...

    It has and it hasn't.

  • So every 0.1 seconds in your example, just set text of your text object to: "Attack " & Attack1 + Attack2 + Attack3 and that should do it, right? I think?

  • offhand, a foreach for the sprites, and the position being set to some x of floor(random(3)) * 200, and y of same, offset from your origin x,y position for the grid. Tweak as necessary.

    EDIT: Umm, yeah, don't do this. Follow Magistross' reply below, which is what I intended but somehow completely spaced. Blaming Canada.

  • You do not have permission to view this post

  • Can you give an example of what the variables represent, and what you expect the outputs to look like?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads