Hi,
I am asking this question specifically to Danpost, for I have seen he is an expert at the scrolling scenarios, but anyone can answer!
I have a created a scrolling world, and I have a loop which spawns platforms. It looks like this:
As i gets bigger, the value gets way bigger than 600, my Screen's Width. But the platforms continue to spawn. But when I say something like
This does not work. What is going wrong here? If you need, I can post my World and Scroll Classes. Thank you very much!
for(int i = 0; i < 30; i++)
addObject(new Platform(), i * SPAWN_DISTANCE, 390);
//Spawn Distance = 115
addObject(new Enemy(), 1250, 250);

