Hello, thanks in advance. Not sure (again) how to properly phrase this question for later reference, but I would like a similar functionality with the birds in Castlevania NES, Stage 11.
Youtube link for reference -
https://youtu.be/mOTUVXrAOE8?si=pRDrHPKVWSGydxJB&t=814
I have a bird enemy that patrols the air:
- fly from right to left, hit wall, fly to right.
And when he has line of sight to the player:
- drops a rock, and then flies away and up (out of layout, whereupon it is destroyed).
When the bird leaves the layout, and is destroyed, I would like another bird to spawn in after approx. 2 seconds, from the right side of the screen, and perform the same actions:
- fly from right to left, if LoS with player, drop rock, fly off screen (and repeat until the player gets beyond a certain point (I have a tall invisible collision wall boundary set).
I have the functionality of the first bird working, and everything is fine, but I cannot figure out how to get another bird to spawn in at a further point to the right of the layout.
As in the reference video above, notice how the birds spawn in, drop the "flea man" enemy, and then leave the screen, and a moment later, another enemy comes in and repeats.
Here are some screen shots:
Basic look of screen
Layout - I set two invisible collision walls to act as a patrol barrier for the bird
My event sheet for the bird
Here is the Capx file:
https://drive.google.com/file/d/1ipmMMb-Pu6uckvWgsj9nb6XORwq7TwuF/view?usp=sharing
Thank you for your help!