Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

A lot of objects in 1 scene

$
0
0
I'm making a top down space game, and I've made a script that will generate stars in a specific area. Now if I pick a really big area, say from x-1000 to x1000 and y-1000 to y1000, and generate a lot of stars in there. The game starts lagging, because I have all the stars bound to an empty object, and the empty object has a script attached to it. Which will make the stars stay in the background and move slower according to the movement of the ship. Now my question is, is there any way to make it so that the game doesn't lag when there are a lot of moving objects involved?

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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