Spawning a random actor enemy and spawning them at positions taken from a table.
book2
Member Posts: 4
I have a table with set positions. so that when enemies spawn (from my enemy spawner actor) they will spawn in a different Y position each time(done with a random attribute). I want to have between 1 and 3 enemies spawned at the same time.
- so first pattern maybe 3 enemies are spawned
- second pattern only 1 enemy is spawned etc
But, here's the main thing that's bugging me. I have two actor enemies. And each enemy that spawns will be randomly one or the other actor.
- so of the 3 enemies that's spawned one could be an orc and the other two could be birds etc.
- and in the second pattern the one enemy spawned could be a orc or a bird.
wish i could show my code/structure. but don't think i can do that with gamesald
Thanks
- so first pattern maybe 3 enemies are spawned
- second pattern only 1 enemy is spawned etc
But, here's the main thing that's bugging me. I have two actor enemies. And each enemy that spawns will be randomly one or the other actor.
- so of the 3 enemies that's spawned one could be an orc and the other two could be birds etc.
- and in the second pattern the one enemy spawned could be a orc or a bird.
wish i could show my code/structure. but don't think i can do that with gamesald
Thanks
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User