Quantcast
Channel: Questions in topic: "side-scrolling"
Viewing all articles
Browse latest Browse all 99

Scrolling Effect with Multiple Objects,Infinite Side Scrolling with Multiple OBjects

$
0
0
So I have a script that changes a specific material's x element of the offset value in order to get a endless scrolling effect. I use this script for background and for some other object. This is fine by now, because I can change the scrolling speed from the editor for this 2 objects seperately. So I can get a background and an object scrolling with different speeds and with the same script. But I need to change this object's scrolling speed dynamically, because it moves in world space while scrolling so when it stops moving it looks like scrolling had slown down. I don't want this. My problem is when i try to spawn 2 of this object, while other one still in the scene, second one messes up first one's scrolling effect. There is a material for background and another material for the objects I am trying to spawn. It's never an issue with the background but when I try to spawn 2 or more of these objects, only the last one behaves like it should. What should I do?

Viewing all articles
Browse latest Browse all 99

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>