LordKhaos's Recent Forum Activity

  • Brilliant, thanks for the help dop2000,

    I put the variable set after the wait and it worked.

    Also set to static and it worked.

  • Hello,

    I'm trying to understand the flaw in my logic when subtracting HP from an enemy based on a formula (ATK-DEF) and displaying on a popup ( function call).

    Here is the code:

    Result:

    Seems that the variable value being passed to the Popup_Damage function is the initial one and not the one calculated inside the parent function.

    Just wondering if there is a construct specific logic at work or I'm overlooking something obvious.

    Thanks for all the help in advance.

    Tagged:

  • Hello dop2000,

    Thank you for your response, I wasn't aware we could import addons before loading the the project.

    Launched C3 and loaded the plugin before opening the project and it worked.

    Best regards

  • Hello,

    so after 2 months of not working on the project I finally have time to come back to it...

    But it fails to open due to a missing plugin?

    I thought this was saved on the cloud save or bundled inside the c3p file. I did not have this issue 2 months ago.

    How can I fix it and get back to my project? I would re-import the plugin but the browser wont launch C3.

    Tagged:

  • I'm just testing it with 1 hero at this point, but the idea is to have more so I ended up putting it in a foreach - that broke the whole thing for instance.

    After clearing out the events inside the foreach it seems that not being in the foreach and having triggers in the subconditions might have been causing some concurrency issues.

    All sorted, and seems the if .. elses are working as intended ( no way to use the debugger in the loop so I'm just assuming its working).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    just testing some different strategies with the engine.

    I tried to create a conditional logic like this one:

    IF

    IF SUB-CONDITION 1

    ELSE IF SUB-CONDITION 2

    ELSE IF

    ....

    ELSE IF

    ...

    However, seems that when the first IF condition is satisfied, the other else if conditions are stil evaluated and the actions inside them executed. I've found some ways around it but wanted to understand clearly how it works as it might simplify all my code (possibly improve performance). Here is the editor:

    Any help is apreciated!

  • That worked, didn't realize Z elevation was not the same as Z-order.

    Thank you for the clarification!

  • Hello,

    I'm trying to setup health bars near the feet of some sprites and I need some help.

    This seemed to be working when the healthbar was a simple rectangle, but when I decided to improve the health bar to give it a background (another sprite on the bottom) then I realized that both pinned objects slowly move away or close in to the origin sprite. That means that it does not keep the same distance as the sprite moves around.

    I've tried multiple behavious (pin to image point, distance, etc) and they all seem to do the same.

    I've set both healthbar and background imageview points to the center (althought they have diferent sizes).

    Here are some screenshots to ilustrate:

    This is my logic:

    Any help would be apreciated!

    Tagged:

  • Hey man,

    this is not my kind of game, but it looks super professional !

  • Hey,

    as a programmer at heart I was really hoping I could do some programming for some bits and share for someone else to use, i.e. like a simple health bar - why should everyone take 1 hour to event it instead of just plug one in straight out of the box? Pretty sure most games have to implement it.

    Anyway, this looks like a terrific way to get started on SDK but its not clear for me how I can test it - is there any way I could have a look at those removed tutorials?

  • Thank you dop2000 - that solved the issue.

    I really like your idea of containers, I think that will simplify things a lot.

    Thanks again !

  • Hello,

    been searching the foruns and the documentation and I can't seem to make this work.

    I want to create a sprite for each instance of an enemy based on a name and PIN it to it, however it always gets pinned to the last enemy on the foreach.

    Both Enemies and Battlers_Skin are families.

    I've also tried to do it on a sub event using last created with no sucess.

    By comparison the Health_Bars created with "Create Object" work as one would expect.

    Thank you for your help!

LordKhaos's avatar

LordKhaos

Member since 2 May, 2020

None one is following LordKhaos yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies