How to duplicate enemies and properties
Hey guys, the post isnt as simple as it sounds, thats just all i could fit in the subject lol. the question i have is, how could i create 1 enemy, using path movement, and duplicate it x number of times but assign a random path movement for each enemy? also, when i attack a single enemy, once its life drains and it dies, all other enemies die onscreen. i know this is because it has simply duplicated the actions as well and the only way i have found to get around this is to create a separate active object per enemy i want to add. again this works, but it seems like a pain and that it would quickly take up too much unnecessary memory use, not to mention im sure there is an easier way of doing this! lol
Re: How to duplicate enemies and properties
Re: How to duplicate enemies and properties
Wow man, you really need to break those long paragraphs up!
As far as I know, without using obscure extensions, you can't randomize a path movement. A path movement is really basic though.
Now, you haven't given a lot of info here.
You want enemies with random paths? Have enemies, duplicate them and then do this:
-->Every 2 seconds
+ Pick "Enemy" at random
=="Enemy" set direction to Random(32)
This will make the enemies wander around.
You can then use large circles to act as Line of sights, but that needs to be coded in from the very beginning.
As for the instant death:
-->"Boss Enemy" alt val HP is <=0 (if that's how he dies)
==Run loop "DIE" (# objects Enemy) times
--> On loop "DIE"
+ Pick object Enemy at random
== Destroy Enemy
That should do you for now! Try that and then post back, and try and use the Return key a little more! :D
Re: How to duplicate enemies and properties
lol i didnt know this was being looked at by the visually impaired! :D :P just kidding. Thanks for the input BAugustus, i'll try that out later. Yeah i have 1 enemy that will be appearing multiple times, like for example bats on castlevania. I just needed to know if there was a way to make them spawn x amount of times and randomize the movement according to path movement. But what you posted sounds like it makes sense so i'll give it a go! :)
This is going on my bike stage and i have it set up to where when x amount of enemies have been killed, different stage elements take place, like:
Enemy Counter = 0 > Create Overpass
and then my overpass is a parallaxer, but the way i made it look natural is by making an active object and give it the bouncing ball movement that goes left, then made it at appear at the edge of the parallaxer object, that way there is no break when the overpass appears. sounds kinda silly, but it works like a charm :)
Re: How to duplicate enemies and properties
Quote:
how could i create 1 enemy, using path movement, and duplicate it x number of times but assign a random path movement for each enemy?
Here's a simple example:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=200578&#Post200 578
Press space to assign it a random movement.
You don't need any extensions and stuff.
I think this method will probably not work as you want it to, but it's still pretty useful to know how to achieve this kind of effect.
Re: How to duplicate enemies and properties
Thanks! i'll check that out as well