Fradno's Forum Posts

  • How do I make it select UID? It only gives me the option of selecting the enemy itself, instead of all enemies in general, which I heard the family feature does.

    Right now I'm trying to figure out what expressions are possible, like how all the variables of an object display when you pick an instance variable action. I'm to make that equation in a response post from above as I write this. {I was still trying to implement the character select screen at the time I posted the OP for when I got there.}

  • Almost forgot to mention, will I need more than the free version to do some of these things? I heard families group objects into a single group for easier referencing and what not.

    When I'm trying to set up the collision of the attack, it only allows me to choose 1 object. Which means I would have to copy and pasted a "Slash" Attack for every enemy in the game, even if a universal function is called to calculate the damage, I was hoping to make the attack overlapping have universal targetting so I wouldn't have to recopy and paste for everything. Anyway, thanks in advance for the info.

  • Thanks, Aphrodite!

  • Thanks, Robsta, another thing I wanted to know is if put this damage function in every event sheet of every level, or if there is a way to make a global event sheet? I notice that a level can only refer to a single event sheet, but maybe my limited knowledge is causing me to focus to much on that property in the menu.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes! This is what I was looking for, thanks. So Functions and Arrays is what I should be trying to use? So for the attacks properties, they should be assigned to an array while the player/enemy stats can remain as instance variables, or would ATT and DEF be in arrays while HP as a variable?

    Thanks, Robsta. Your post was very informative.

  • Hi, how would I go about making a system where a damage calculation is played based on the users attack variable, the attack's own damage value as a modifier of the users attack variable, and the targets defense, all calculated universally by calling the calc when ever damage is done.

    So that the only thing every hero or enemy object needs is an HP, ATT, and DEF variable in their instances?

    This is for a sidescroller by the way, so theres collision detection.

    Say for example, player uses fireball(Technique) on an enemy and it overlaps on them, then the damage calculation should be called: Players Attack*Techniques Power / Enemy Defense = Damage total, which is substract from the HP variable of the enemy.

    I don't want to go and use a simple system where I just type "-5" for the damage of a fireball on an enemy, independent of the user of the fireball. I want the fireballs damage to be based on the user, while the fireball itself has an attack value, it is a multiplier of the users own attack power, instead of being independent damage. Like say, Fireball's value is always 1.25, so if the player's attack is 100, then the total damage is 125, if the players attack is 8, then the total damage is 10. Then the enemies defense comes into play, dividing the damage by the defense value.

    How would I go about implementing this? What method is the most efficient?

    To reiterate: Player and enemies have HP, ATT, and DEF as stats. Attack techniques have POWER as a stat{damage modifier}. And theres a calculation that is called everytime damage occurs to a target, based on these values and subtracting the results from the self HP attribute of target.