I’m working on a game that uses the shark attack skill map.
I’m trying to make it so that at a specific score, a submarine will come out form the other side.
I need help for that, any help is appreciated!
On game update if score > x then create submarine
Set sub position to player position but change its x pos so it’s off screen
Set its vx to positive? (might be negative) so it moves towards the player
2 Likes
Thanks!
Make sure to stop the game update with a variable so it doesn’t repeat and spawn a million sprites
1 Like
I made invisible entities so they will delete the other entities after the leave the screen
1 Like