Getting Enemies to shoot


ipe 369

  • Posts: 1001
That'd be why, whenever your enemy gets hit, if the thing that hits it isn't a 'sword' it hits no damage.

funkydude

  • Posts: 170
So download sword attack ?. and what one cause there is a few there on stencyl.
Games -Flash, Play free online games.
http://www.games-flash.co.uk/
See us on facebook and twitter
https://www.facebook.com/gamesflasharcade
https://twitter.com/gamesflash

ipe 369

  • Posts: 1001
No no no, make a collision group called 'bullet' or whatever, then change the 'if collision group = sword' to 'if collision group = bullet' then make your bullet in the bullet collision group.

funkydude

  • Posts: 170
No no no, make a collision group called 'bullet' or whatever, then change the 'if collision group = sword' to 'if collision group = bullet' then make your bullet in the bullet collision group.

Done the group named bullet.kinda confused with rest of it.
Games -Flash, Play free online games.
http://www.games-flash.co.uk/
See us on facebook and twitter
https://www.facebook.com/gamesflasharcade
https://twitter.com/gamesflash

ipe 369

  • Posts: 1001
Ok how does your enemy take damage?

funkydude

  • Posts: 170
Ok how does your enemy take damage?

Don't think i have that set up but i know in health snip i can set health to 100% and max health to 100% and damage taken is 10% for every hit as you saw in my images above.
The player ship dies as it should its just the enemy ships that don't

« Last Edit: January 20, 2013, 11:11:28 am by funkydude »
Games -Flash, Play free online games.
http://www.games-flash.co.uk/
See us on facebook and twitter
https://www.facebook.com/gamesflasharcade
https://twitter.com/gamesflash

ipe 369

  • Posts: 1001
You have player bullets then? just check if the enemy collides with player bullets then perform damage calculations.

funkydude

  • Posts: 170
Yes i have it but named it bullets which will collides with enemy ship and enemy bullets.

« Last Edit: January 20, 2013, 12:41:04 pm by funkydude »
Games -Flash, Play free online games.
http://www.games-flash.co.uk/
See us on facebook and twitter
https://www.facebook.com/gamesflasharcade
https://twitter.com/gamesflash

ipe 369

  • Posts: 1001
Ne'er mind. Just make a new event, when collides with <INSERT BASTARD BULLET TYPE HERE> then perform health stuff in that

funkydude

  • Posts: 170
Make new event in health snip ?.
Games -Flash, Play free online games.
http://www.games-flash.co.uk/
See us on facebook and twitter
https://www.facebook.com/gamesflasharcade
https://twitter.com/gamesflash

ipe 369

  • Posts: 1001
I have no idea anymore
Copy all of the subtract health parts from the previous event into the new event, delete the old event, done.

funkydude

  • Posts: 170
Ok thanks for your help.
Games -Flash, Play free online games.
http://www.games-flash.co.uk/
See us on facebook and twitter
https://www.facebook.com/gamesflasharcade
https://twitter.com/gamesflash

funkydude

  • Posts: 170
ipe 369 i got it to work there was something wrong with the health snip i was using so used another one and works well,now my enemies die.

Ps thanks again for the help on this.
Games -Flash, Play free online games.
http://www.games-flash.co.uk/
See us on facebook and twitter
https://www.facebook.com/gamesflasharcade
https://twitter.com/gamesflash