Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Marirari89 on July 18, 2022, 07:53:18 AM

Title: Gradually Increase Spawn Rate Over Time
Post by: Marirari89 on July 18, 2022, 07:53:18 AM
Hello! I am new to Playmaker. I want to make a 2D game where you controll a character from side to side and catch some good things that are falling down, while avoiding other things. Some things give you score points while other things damage you.

I want the objects to spawn randomly in different positions in different orders at the top of the screen.

I also want the spawn rate to gradually increase over time, making it more difficult to avoid the bad stuff.

How can I go about this using Playmaker?
Title: SOLVED
Post by: Marirari89 on July 18, 2022, 09:43:29 PM
If you read my post and was curious about the same thing, I found some solutions.

1. Create a new state with Wait. Add a variable for the time to wait. Add this from the variables tab. Add the Subtract float and subtract from your newly made variable. This will gradually decrease the time it takes to spawn a new object.

2. Create a new state with Scale time. This action controls time. Make a time variable in the variables tab and apply it. Add the addd float action to add to the speed gradually.