Request:
Objective: How to make incremental and random variables.
Info: By incremental I mean something happening more and more often the longer time goes on, for example making an enemy spawn faster and faster throughout a level.
---
By random I mean giving something a random variable with upper and lower limits. For example an enemy spawns but you want it to have a constant walking speed of any number between 100 and 150.
Resource: No Idea how to do this, so no .cap I'm afraid.
For your first question, you could use the X coordinate of the player as part of the random generation equation. The further along the player is (assuimng completely that the player is travelling to the right) the higher his/her X coordinate will be.
You could do something like:
(pseudo code)
+Every random(10000)+10000 milliseconds
+Player X is less than 200
+Player X is greater than 0
-Create enemy at X,Y
-Set enemy speed to random(100)+50
[/code:3dzuw2ql]
followed by
[code:3dzuw2ql]
+Every random(5000)+10000 milliseconds
+Player X is less than 400
+Player X is greater than 200
-Create enemy at X,Y
-Set enemy speed to random(200)+50
[/code:3dzuw2ql]
There are probably better ways to do this, as I'm quite sure people will point out... but I come from the "Quick and dirty and get it done" school, not the "Precise and correct and optimised" school.
~Sol