Now im using :
system---> score >50 --->create object
system---> score >100 ---> create object
system---> score >150 ---> create object
but i need one unique solution... thanks!
look at modulo (see https://www.scirra.com/manual/78/expressions)
with this you could do something like
add to score
..if score % 50 = 0 then create new object
RamPackWobble:
If the score skips from 49 to 51, this will not work.
Instead I'd go for something like:
function "addscore":
function "scorespawn":
while scorespawner >= 50:
All actions that add score would then use the addscore function instead of simply adding x to score.
Good point mindfaQ, a much better / flexible approach.
Develop games in your browser. Powerful, performant & highly capable.
Im not sure... is it correct?
I think solved with an easy way:
new variable: "enemycount"
every add score also add 1 to enemycount
if enemycount >= 50 create enemy and set variable "enemycount" to 0
Right?
I think solved with an easy way: new variable: "enemycount" every add score also add 1 to enemycount if enemycount >= 50 create enemy and set variable "enemycount" to 0 Right?
Exactly the solution I came here to suggest
this is effectivelyy the simpliest way to get this working...
That's pretty much what the functions do. But don't set it to 0, instead substract 50, again for accuracy.