Quantcast
Channel: Answers by "murkantilism"
Viewing all articles
Browse latest Browse all 99

Answer by murkantilism

$
0
0
In your game, does cratertex.GetPixels() consistently return the same sized array? That's where the issue might be. If cratertex.GetPixels() returns, say, an array of size 1,000 each and every time then it shouldn't be the bug. However, if on every frame it *might* return a different size, then craterData should be initialize as a dynamic array, so it's size can change dynamically. You can do that by doing this: var craterData : Color[]; // Declare the array Give that a try and let me know if it helps the issue.

Viewing all articles
Browse latest Browse all 99

Trending Articles



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