Maximuspl's Recent Forum Activity

  • Hello, I noticed one problem that arises when I destroy several enemies at the same time.

    My player uses a shotgun that fires 12 rounds at a time. often enemies are positioned so that they hit several at once. and it turns out that after killing a few of them, even though they have less than 0 HP, they still exist.

    My condition looks like this:

  • i know i can make condition and event with mouse

    but its possible to make simulate left button click when i tap twice on touchscreen to receive one left mouse click?

  • Its possible?

  • i try figure out something simple, in one line but this dont work well on my example.

    When Damage is 100

    and

    armorPercent is 50

    caused damage is 75, why?

    can somebody can fix my code?

  • So, you can do this like this:

    let damageAfterArmor, damageAfterArmor2;

    damageAfterArmor2 = damage * (100 - Armor2) / 100; // Damage mitigated by Armor2 (percentage)

    damageAfterArmor = damageAfterArmor2 - Armor; // Damage mitigate by Armor

    hp = hp - damageAfterArmor;

    how this should looks like in events?

    did "damageAfterArmor2 = damage * (100 - Armor2) / 100" should be under Every tick condition or just when hit is caused?

    why your proposition is in two lines not in 1 line (event)?

  • You do not have permission to view this post

  • Example

    Player have global variable 'HP' default is 100

    Global variable - 'Armor' default is 5 (always absorb 5 damage)

    Global variable - 'Armor2' default is 50 (that means absorb 50% damage)

    Global variable "Damage" is 50

    so

    example 1

    When Enemy shoot at player and "Damage" is 50

    in Events should substract 25-5 (total substracted damage should be 20 'HP'

    example 2

    when 'Armor is 0 and 'Armor2' is 50 (percent)

    total substracted from 'HP' should be 25

    what i should type to calculate total enemy attack?

    now i have:

    when bullet collision with player>

    From 'HP' substract

    Damage -Armor - Armor2 ???

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • > Mouse On Sprite Clicked
    Sprite Pick Top : Sprite Destroy
    

    Instead of "Pick Top" you can use "System Pick Random".

    dop2000 hero of the day !

    i like more and more thic Construct3

Maximuspl's avatar

Maximuspl

Member since 27 Oct, 2022

None one is following Maximuspl yet!

Trophy Case

  • 2-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

6/44
How to earn trophies