hi
i am working on creating a defender type game and am trying to figure out the best way to go about creating the level wrap around i reckon the easiest way is to create a duplicate of the level so that the scrolling is smooth and continous.
But i am also wondering about the idea of using multiple cameras and script the normalise viewport settings.
Has anyone done anything similar?
demo here without scrolling as yet.
http://www.deathbypixel.co.uk/defender%20demo.html
I am not 100% on this, but I know it has to do with something basic like division, every time you go to unity 10, you are back at unit 1. Like I said, I haven’t done it, but I have thought about it, and this is the only way that I can see it happening, so it would be start at 0, go to 10, back at 0, go to 10 and just keep repeating, how to make your enemies and such show up is what I can’t figure out. I will be looking at this thread as well because it is something I want to look into.
yeah i did think of trying that but i have a smoothing script on the ship which makes the ship appear to fly back through the whole level. So i am going to try and use a texture scroll on the background keeping the ship stationary. I have used this kind of thing before and it is very easy. so i guess i just need to constantly relocate the other game objects once they are reach a threshold value.
i thought of 2 ways to do the enemy relocation.
1 test for a threshold value on each enemy once this is reached they relocate to the beggining of the wrap.
2 create a mirror of the the whole scene which is offset by the level length and rotate the 2.
i am just wondering about the best way to do this in terms of performance.
also different values should create a nice sense of paralax.
most of the code for this is sorted i just need to tidy it up.