Spawning........or what it was called :/.

Hello :smiley: ! How can i do enemy spawning thing in blender(adding the enemy with all it’s childs and stuff)?That’s for keeping the game running smooth - i want enemys to apear only when i reach some point in the game.And also , if possible , can you give me an example please %| .

hmm… that’s pretty hard to do… you would need some property to be the trigger for adding the enemy… if this property will equal the value 1 then the enemy will be added… but if you want to make the enemy to appear only at one point in the game then you have to make properties for all actions in the game and if they are completed they will all be with a value 1… So if you complete all the actions(they are all equal 1) then it will send a message to the main propery that will add the enemy…

Adding the enemy to a certain point could be a tricky one… Maybe it can be done by python… I think it’s possible with python to add an object from another blend file…

or you could make two identical scenes - one with enemies and the other without. and if you reach some point of the game, then it would change the scene…

no example files cuz even I can’t understand the crap I wrote… :smiley:

hmm whats wrong with puting around a few empties for the spawning points with this setup:

sensor : near
|
controller: and
|
actuator: add obj

hmm whats wrong with puting around a few empties for the spawning points with this setup:

sensor : near
|
controller: and
|
actuator: add obj

That’s what i have in mind,so i dont need a script for placing the enemy to a certain point , just to add him where the empty is.

Not sure if this relates, but I couldn’t get the edit object actuator set on “replace mesh” to replace empties with an object. I used a plane set to “invisible” instead. Not sure if that’s anything to do with your problem, however, it isn’t a problem if you use “add object”.

-“D”

Sorry about that, answering the wrong post trying to do two things at once.

-“D”

…ahhhh actually i think i dont need spawning.Changing scenes would be even better if you think about it - the game will always be smooth because the whole map isnt rendered , just the place where you are and you can make it seem so that the map is extreemly big with many,many enemys without big fps dropping :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: ! Yeah…, i think i’ll stick to this one :smiley: !

I’m sorry for the confusion, but I understod that you were trying to make something similar:
if you walk into a room and pull a lever then when you go back where you came from then the room is filled with enemies…
Adding an enemy can be done with empties and replace object so python won’t be nessesary… so nothing hard…