Hello again!
I need help desperately with this one. When my screen is scrolling on the game it stays at a constant speed. I would like it to slowly increase in speed as the game goes on to make it more and more difficult for the player but I cannot get my head round it. I’ve come up with this so far but nothing changes and no error is given it just stays at a constant speed:
nMilliseconds = 500 incrementfortime = 750 val = 11 increment = 1 nMilliseconds = nMilliseconds + incrementfortime while val \< 15 do system.getTimer( ) timer.performWithDelay(nMilliseconds) val = val + increment end function scrollCity(self,event) if self.x \< -2400 then self.x = 2560 else self.x = self.x - val end end
All help is welcome and thank you very much for your time,
James