I know i've seen a tutorial for one around here somewhere. Can somebody point me to it? Thank you as always.
I know i've seen a tutorial for one around here somewhere. Can somebody point me to it? Thank you as always.
By "Endless", you mean what exactly?







I think he means something similar to the helicopter game where you have to survive as long a spossible. the terrain is autmoatically generated at runtime so in theor you have an "Endless" level.
Yes i believe i have seen a tutorial on this somewhere but for the life of me cannot think where. i'll see if i can find it!

He must mean a level where you keep running, and the level keeps going.
Hm, I remember a tut on this, but I don't remember where I saw it...
I think that it was re-setting the character's position once a limit was reached, something like that.
Basically, I need the player to "warp" (seamlessly) back to the beginning of the level when he reaches the end of it, creating the illusion that the level does not end.
Right now, I have it set so that when the X Position of the player is equal to 1,920 (the width of the level minus the size of the screen), his X Position is set back to 0. The problem is that when his X Position is set back to 0, he dissappears for about 1/4 of a second then reappears.
While the level appeares to move endlessly in a seamless fashion, there is still the problem of the player flashing while the X Position is reset from 1,920 to 0. That's why I was looking for a tutorial to see if there was an alternate method of doing it (I thought I saw one at one point).
Thank you.
Set the Virtual width and height of the frame to -1. Then the frame can scroll an infinite amount right and down. If you need the player to move left and up, then at the start of the frame position the player at some ridiculous coordinates, like 100000,100000. I've implemented this in several never-ending level games in the past. But in your situation, you would have to probably only set the virtual width to -1.

virtual width will sllow you to increas the level size to somthing nasty, but still not 'END LESS' it should be noted that on 'the helicopter game' the level actually does'nt scroll; objects simply flyin from the right.
lembi2001, thank you.
GSoft, if that's what the tutorial was, looks like i'll need to find some other way lol. Thank you for your comment.
Brandon, I will try that right away. I appreciate the suggestion.
SEELE, duly noted. Hopefully the game is difficult enough where the player doesn't have the ability to go on forever :p I tried the objects flying from the right method for ground tiles, but for some reason, if their speed increased during runtime, it would create a gap between them.
Thank you everyone, if you happen to hear anything else, let me know.