mostafanastary's Forum Posts

  • Up!

  • Hi.

    I have 50 Levels in my game.

    I check the Level_01_Difficulty Variable for set Difficulty of current level.

    if it is 0 , player play in Normal mode and if it is 1 , hard !

    in menu when player win level with Normal Mode , game allow to Hard difficulty.

    when the player win in Level01 i set Level_01_Difficulty Variable to 1 and if the player lose nothing change.

    i don't have problem with that but ......

    **** if player win in Normal mode and i set Level_01_Difficulty Variable to 1 and player , play the level in Hard, maybe the player want to play the normal mode later. but Level_01_Difficulty Variable is 1 and on start of layout level be on hard difficulty.

    i confuse with that !

    and also how i event for menu for 50 levels?

  • wow, it's very good.

  • Thank you.

  • up

  • Hi,

    In my game, soldiers shoot to towers, and i use turret behavior for soldier, it work but

    look to my capx:

    http://s000.tinyupload.com/index.php?fi ... 3971845097

    soldier when On shoot, shoot to tower again and again and not move along very well.

    i want to , soldier shoot one or few bullet and then move along path, for each soldier.

    is there any idea?

  • hi again,

    i found bug on my game and action,

    when 3 enemies health set 0 on one time for example, nothing happend and enemies with 0 health or negative health , are alive !

    i try my code in Every tick, but the problem not solved.

  • Lncredible thank you for your help.

    99Instances2Go thank you very much, your way very good. why my way has problem?

  • sorry i can't attach my project.

    but i try for

    Family.Health <= 0

    ____ Destroy

    and do not work.

    but when i subtract 20 form health, soldier die on first collision and car in 3th collision and tank on 5th , it means it works very good.

    but for reason i want set it to zero ! or -1 ! witch not work.

    Edit:

    With Family.Health <= 0

    ____ Destroy

    some times work good and some time, when enemies collision with mine, in debug view , it health set to my value, but do not destroy , then when another enemies collision , that enemies with 0 health, destroy !!!!

  • Hi,

    i work on defense game and game have many enemies.

    i put enemies in enemy family with health instance , then set for soldier 20 , car 50, tank 100 health.

    i have mine on game for destroy enemies so when enemies On collision with mine:

    enemies(Family) => set health to 0 ( or -1).

    i have : enemies(Family) <= 0 =======> enemies Destroy.

    but my enemies on collision with mine, their health set with 0 , but do not destroy !

    where is the problem?

    (sorry for my bad english)

  • 99Instances2Go

    thank you so much. i try for that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    i have some tower for my game and i use function like:

    On "SpawnBullet" = > > > > tower ==> spawn bullet on layer 0

    and i call it for tower,

    but when one tower has target, the other tower shoot too!

    why?

  • hi,

    i have tower witch shoot homing missile to enemy,

    for following with missile, i need the target x and y for that.

    how can i ?

  • OK, thank's.

    i try for it.

  • look... i have 2 panel shop sprite and 20 sprite pined to theme. so i need show this panel for any level and i have 50 level.

    is it better to copy/paste my panel and it's button for each level or create them by system create object for each level?(sorry for my bad english)