Maximuspl's Forum Posts

  • Enemy hp is 0 or less - destroy enemy

    Enemy On destroyed - Add XXX to Xp

    Problem is, enemy dont want to be destroyed, not always...

    Adding the 'on destroyed' event will do nothing when the enemy, despite having below zero health, still exists on the map. bullets pass through it, doing no further damage

  • 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

  • If i have one layer, and right mouse button is spawn sprite and left mouse button when i click on sprite > sprite destroy

    But when i spawn many sprites in this same place when i clink one time all have been destroyed.

    How destroy only first sprite? or first sprite on top, or just one random also will be good for me

    I need this solution for survival game with inventory. Reason is When player drop items, items are placed in this same place so its impossible to drag them to inventory one by one

    Pick up items back to inventory is when player overlapping item on ground and press space on keyboard

  • Probably all of you know that games always change the desktop resolution to the resolution set in the game options, of course it must be in full screen mode. Can a game made in construct also do this? The reason is obvious - better performance