How do I accelerate a spawner?
ALCreations
Member Posts: 3
Basically, I am very new to GameSalad and I am creating a game similar to 2 dots 1 Brain. However I have hit a pitfall.
How would I be able to increase the amount of time it takes for the blue and red dot (from the spawner) to reach the circle below it? I would like it to increase every 10 points also. How do I complete this step by step?
Thank you in advance.
- Dyson
PS. I have attached a link to my game so that it may be easier for you to help me.
Comments
Please do not create multiple threads for the same issue.
It sounds like you want to slow down the actor's speed rather than slow down the spawn interval. Is that correct? If so, just use an integer or real game attribute called game.speed. Then use Constrain Attribute game.speed to 100+(game.score/10)*1.2. The '1.2' in the expression can be any constant you want. And the '100' in the expression is just a base minimum for the speed.
Edit: If you are instead wanting the spawning interval to decrease, use a custom-interval timer: http://forums.gamesalad.com/discussion/comment/464547/#Comment_464547
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Sorry for creating multiple threads for the same issue.
Thank you however and I will try this out straight away.
It's not working. All I would like the spawn to do is increase the rate in which the actors come down from so that the difficulty of the game gets harder.
How may I come across completing this please?
"It's not working" doesn't give me much information about why you're having trouble. What did you try?
I realize that since you're using a PC you may not have been able to open the custom interval timer demo I posted. I've modified the rules for that demo to suit your description:
When you divide game.score by (10*10), you get durations that look like this every ten points:
0
.1
.2
.3
You can adjust the divisor to anything you like! I added the minimumDuration attribute (that as well as self.timeStamp and self.duration are real attributes) and set it to 1 so that spawn intervals are at least one second long.
The Timer and Display Text are just there for testing purposes.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User