once again i come to you, humbly and embarrased..
i decided that i want to make dynamic grass blades for my platformer. lots and lots of grass blades that sway when the player overlaps them. this is no issue, BUT:
i was wondering what would be the best way to make them appear. now, i could plaster my level full of them and they would be ready when the level starts, but the obvious problem would be the object(instance) count.
it would be kind of unnecessary to have all those grass blades taking valuable resources.
that leads me to streaming them on screen.
i could do it with making either comparing distance between the player and a ground sprite. or with a box ,always position it to player, make it big enough so that it goes over the screen.
i have ground sprites,that i could use to compare overlapping with the box object, so that upon overlapping, the ground sprite would spawn grass blades on the hotspots placed on the ground sprite. then just invert the overlapping with the box to destroy the grass blades that arent visible anymore. i guess it sounds simple enough, but i cant really make it work.
i have trouble with object picking and determining what blades should be destroyed. i have a bad feeling its something really simple,but is there anyone out there who could help me build this streaming event properly from the ground up, to make it the most efficient possible? <img src="smileys/smiley9.gif" border="0" align="middle" />
also, i was wondering, is it really even worth the reduced object count, because the cpu still have to do some workout streaming the grass? so, sticks and stones, eh? or am i just completely clueless? probably.