darkrealos's Forum Posts

  • yeah the demon healers are in Demons aswell, but i can live without healers healing healers, as thier main goal is to heal front line troops, so what if i did and or block?

    for the other demons excluding demon healers, do you think that would work? thanks for the reply really appreciate it

  • RayKi hi there thanks alot for replying, the initial value is -500000 on both so that when the demons spawn and start initially moving they wont see that point so then they sound pathfinding as normal til they find a target they want, the problem is it wont trigger to find a demon as i think the trigger will only trigger itself meaning i think if a demon healer has less then -hpmax then the demon healer will trigger the effect

    p.s im trying to keep this project secret so if you want to see anything let me know and ill just print screen code you want to see

  • anyone?

  • hi there i was wondering if someone can help me, im trying to have my demon healers try find demons that have lower health then their max health and then pathfind to them and heal but the demons dont stop to heal demons or chuck the healing potions at them, i think the problem is the code demons HP < demons.HPMax but i'm not sure how to work around this. image in link below of code

    http://imgur.com/a/B8Bu3

  • i believe i worked out the issue, from the code i showed you it would never work because all of the objects its looking for isn't in line of sight meaning that it would always trigger, so simple fix was to set last known position on sprite and have line of sight on position meaning that it should never be out of sight

  • i got rid of all the each's in there as you said they were unnecessary, i thought the random timer just gave each individual their own rate of fire but the timer is the problem as for some reason the line of sight doesn't work as when one of them are not in line of sight it changes the code for all the demon archers not just the one

  • i see, i've been getting that part wrong lol thanks for informing me, but getting rid of the other triggers and having the single one hasn't fixed it, all the demons timers are still resetting instead of each demon checking its line of sight

  • randomly thanks for reply i haven't started this code as having another problem atm but when i do i want it like the capx shows and stick in the ground at .x .y which i don't think will be hard but i would like it to sometimes predict enemy movement and sometimes go bit off which i would imagine random(num,num) would help, i just don't know how to predict movement lol, as the archers that firing the arrows will be ai based so they fire on sight of enemy in arc sometimes hitting the enemy and sometimes not based on their accuracy variable/abit of luck. hope what i said makes sense

  • hey there im still having problems its doing the same i did another test and had it working but then i added code to check if each demon has not got a line of sight then change action to searching - which starts the demons moving to next targets. then the archers "demonArcherFire" Timer keeps rebooting it makes no sense as i thought the code would check each minion individually instead if 1 isn't then they all do the same, image below of code

    http://imgur.com/a/vhB7m

  • thanks a bunch man this will make my life easier i tried to make a sprite for this same effect earlier which was a fail .

    Hugely appreciate all the help

  • line of sight as in turret behavior. okay with each does it check every tick anyhow?

    and its funny you just replied as i was just checking your game out on another page

    but thanks alot man really appreciate the help will try implement it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi there i have a battle system where loads of minions charge at each other and fight but im having an error with the code i was wondering if anyone can help.

    Through some debugging ive worked out that the first archer spawned doesnt trigger the timer"DemonArcherFire" and any other archers timers constantly reset so the timer never reaches 0. BUT if its just one archer attacking the code works fine so im abit lost.

    also the engaged for archer means it wont pathfind anymore

    Please help me screenshot below

    http://imgur.com/a/MVbPH

  • i second this, ive been looking around for something similar for arrows but everywhere has capx files on dropbox which doesnt work anymore, anyone have them or could post one?

  • hey sorry for the late reply managed to do exactly what i wanted thanks alot

  • i think that is exactly what i want, let me try add it to my game and let you know

    checked it and it works exactly how i wanted it to thanks a ton man,

    arrays are defiantly something i struggle with