Maximuspl's Forum Posts

  • Hello i have working drag and drop inventory system.

    Now i need to make drag and drop (to empty slot) automatically

    i try figure out how set logic of events.

    now here this looks like this:

    i need receive:

    1 When i Touch LOOT BOARD, all 'LootSlot' should spawn own new sprite 'DragEqitem'

    2 this 'DragEqitem' should find empty slot and set his position to empty slot.

    3 When find empty slot- simulate DROP

  • Get rid of the "Trigger Once" (which should always be at the bottom) and the "For Each" and just have:

    Enemy hp is 0 or less - destroy enemy

    On Enemy destroyed - Add X to Xp

    I don't understand why that shouldn't work. I'd have to see the cp3 file to see what's wrong.

    tomologames(at) gmail . com if you want me to take a look at it.

    Ok i will check without for each and without trigger once, and I will send you a c3p file if I can't handle it. Thank you for the offers of help

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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:

  • 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