- Home /
Animated background
Hello everyone,
I'm trying to do a simple minigame in my project creating a sidescrolling shoot 'em up, like those spaceship games that were on SNES and Sega genesis. I've set up a character controller and the movement script it's nearly finished. Now I was thinking on how the level progression is done. I've thought the simplest way is to let the character move around the screen, and then make enemies appear going from right to left, also I need an animated background to create movement sensation.
Is this the most easy way to do it? If so, how can I make the animated background thing?
Thank you.
There have been a bunch of questions about animated backgrounds here over the last few weeks, but the best solutions I saw out of the many posted was to animate renderer.material.mainTextureOffset, so that it looks like the background is moving.
Ok thank you very much. I assume that modifying the TextureOffset of the renderer works for a plane which is in the same 3d space as the other objects and has this texture applied to it. Is there any way to do the same thing with a GUITexture, which I'm using to do my game's backgrounds?
Anyways, I was able to solve my problem with a plane with a texture on it with your method. Preety simple, thank you.
Your answer
Follow this Question
Related Questions
How can i create an animated desktop background from a unity scene? 1 Answer
2D Parallax Background 4 Answers
How to Render an Background on Top 2 Answers
byte array of image whether can make as the background of unity camera preview 0 Answers
Does Unity 4.0 support ActionScript Workers for FlashPlayer 11.4? 1 Answer