Hello everyone,
I am creating a Space RTS game. I need some help in creating this script:
In my game Main ship will instantiate up to 3 small fighter ships one by one. If any small ship get destroyed main ship will instantiate new ship. How to achieve this? please help.
Break your problem into small pieces and tackle each small problem one by one:
- Figure out how to spawn fighters.
- Figure out how to space their spawning out over time.
- Figure out how to keep track of how many fighters are alive.
Then put all those together.
Thanks. I think I managed to complete this script. ![]()