Help❓ behavior help

Posts 1–3 of 3 · Page 1 of 1
❓ behavior help
so i just wrote a custom behavior for a enemy but he is shooting shotguns can someone explain me what the different things in the new shoot line stand for, how they work and why this behavior makes him shoot shotguns? because i want him to shoot in 1 place and not where the player is



new Shoot(25, projectileIndex: 4, count: 1, shootAngle: 240, coolDown: 500, coolDownOffset: 500),
new Shoot(25, projectileIndex: 4, count: 1, shootAngle: 300, coolDown: 500, coolDownOffset: 500),
new Shoot(25, projectileIndex: 4, count: 1, shootAngle: 330, coolDown: 500, coolDownOffset: 500),
new Shoot(25, projectileIndex: 4, count: 1, shootAngle: 30, coolDown: 500, coolDownOffset: 500),
new Shoot(25, projectileIndex: 4, count: 1, shootAngle: 60, coolDown: 500, coolDownOffset: 500),
new Shoot(25, projectileIndex: 1, count: 1, shootAngle: 90, coolDown: 1000, coolDownOffset: 500),
new Shoot(25, projectileIndex: 1, count: 1, shootAngle: 180, coolDown: 1000, coolDownOffset: 500),
new Shoot(25, projectileIndex: 1, count: 1, shootAngle: 270, coolDown: 1000, coolDownOffset: 500),
new Shoot(25, projectileIndex: 1, count: 1, shootAngle: 360, coolDown: 1000, coolDownOffset: 500),
new Shoot(idk, enemy xml proj index ex. In xml enemy have 1 - red bullet 2 - blue bullet 3 - green bullet, making projectileIndex: 1 makes him shoot red bullet etc., amount of bullets shoot, angle at what enemy shoots(90 is in right, 180 backwads etc), cooldown is how often enemy shoots 1000 = 1 sec, coolDownOffset is cooldown after spawning.

- - - Updated - - -

Probably, not 100% sure

- - - Updated - - -

If not at player and in one place all shoots, make all shootAngles for ex. 180. It will always shoot not on player, but behind monster.
Instead of using shootAngle: use fixedAngle:
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us