During my time coding games with AS i have needed to know i few things that i havent been able to find out my self, i was just hoping some other people have.
Running a function untill it returns what i want.Is it possable to do this? Without running a huge loop and hope it returns what i want eventualy?Code:function Random() {
ran = random(10)
return ran
}
Random()
if (ran > 3) {
// Do Somthing
} else {
// Run this function again
}
Whats faster running 1 loop of 10 or 2 loops of 5? Is there no difference?
Can flash draw squares faster than circles as vectors?
The larger the bitmap the longer flash takes to load it to screen is this the same with vectors?
