Hello, im making my 2D side scroller game. (super mario)
sorry for my english.
i dont know if i did it right,
first ,if mario is in the middle position and then he moves forward the "background will move", while background is moving mario will still be in the middle position until he moves back.
second, how about the obstacles that arent yet visible in the screen? should i make the background to, like, window.getSize().x * 50000 pixels? and then put the obstacles and the enemies there at the beginning of the program? and if theyre already visible in screen i will start to make them move?
or any ideas?
thanks.