paramoniak's Forum Posts

  • 8 posts
  • Maybe is: For each sprite

    when bullet collision with sprite

    sprite die

  • I need to pick by UID? i never undestood the UID and the pick.

    May be i need to make this: Enemy When overlapping defenses, pick by uid and the rest of the code Attack, etc etc?

  • Hi Everyone!!

    I had making some test with "Tower Defense" game like.

    And i have 2 enemies in "Enemy" Family and 1 Crate in "Defenses" Family

    The Enemy family have a instaces variables ( Speed, TimeAttack, Attack (Damage) ) and a timer

    And Defenses family have only HP variable

    The enemies "runs" with a bullet behaviour and when crash with a defense then stop and attack with a timer

    each enemy have different timeAttack, speed etc etc

    But they are not attacking.. if enemy destroy one defense all instaces destroyed (Although defenses are in a family)

    and if one enemy has stopped then don't continues his way.. i've tried to give a Attacking/not attacking instance to EnemyFamily but didn't worked yet.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe de start point of the frames are not in the same place. Go to your animation and find the start point and right click aply to a whole animation. This set the startpoint place to all frames of the animation. also yo can set for all animations, in the same menu of "apply to whole animation" are "Apply to all animations". Maybe is this?

  • Aaah, yeah, i understand now, Thanks!

  • Hi everyone!

    Thanks for the patience! and sorry for my english U.u

    Imagine a RPG gamelike, there are Archers ( A1,A2,A3), Knights (K1,K2,K3)

    A1,A2,A3 have, each one, a variable instance "Damage", "Life" with diferent values..

    K1,K2,K3 have variable instance "Damage", "Life" too with diferent values..

    With families can i make that A1 makes his damage to K3, or A2 to K1, with manyfew expresions?

    i think, making A1 when overlapping at offset X 10 to knight2, knight2 substract from "Life" Archer1.Damage

    and this for all archers and knight respectively, is the wrong method to do this. i think with families would be better. I have been read the manual but still understanding. The instance variable for familie affect to all objects that are in? hmm Sorry, maybe this is very easy but i don't see the light yet hhehe

    Edit: also add there are multiple instances of each object

  • i've found another method for fix it, with "combo" variables. But thanks!!!

    i want to ask other thing. In case of Age of war, Battle Cats, Cartoon Wars like games.

    The best way for make the "troops" is with a sprite detector atached to animation or without this detector? ( for detection when collide the troops and then attack)

    Because i'm doing without detector, and i'm not sure if is the best way.

  • Hi! I'm new in this forum!. Sorry for my bad english

    This is my last option because i've been trying make this to work by few methods.

    I have a Sprite and Sprite2 in poles apart ( Sprite ---------------------------------> Sprite2 )

    Sprite have Bullet behaviour and when i click a button, Sprite start to move to Sprite2

    i have this:

    • For each Sprite:

    -------Sprite is overlapping Sprite2 at offset (10,0) ---> Sprite set bullet speed 0

    --------------------------------------------------------------------------- Sprite set Attacking True (Attacking is a instance variable)

    -------system else--> Sprite set bullet speed 50

    -----------------------------Sprite set Attacking to false

    -------Sprite is Attacking --> Start Timer "Attacking" for 600 (once)

    -------On Timer "Attacking"-->

    -------------Sistem Everytick --> Sprite2 Substract 5 to Life (This life is a instance variable, have 30 initial number)

    -------Sprite2 Life <or equal to 0 --> Sprite2 Destroy

    -------------------------------------------------Stop timer "Attacking"

    All this in For each Sprite

    My idea is when Sprite arrive to sprite 2, sprite atack him! dealing 5 per second. When sprite2 is "dead" Sprite continue his way until collision with other instance of Sprite2. Like a Strategy Game.

    but the problem is that Sprite when stop dont deal 5 per second and dont destroy Sprite2, Maybe i've done the timer incorrect? Thanks!! and sorry again for my english

    To add information: There will be more instances of sprite and sprite 2, is like a Npcs battle.

  • 8 posts