I've been looking everywhere for a random tile world generation tutorial or engine for mmf2, but I found nothing so I decided to build my own from scratch. This engine uses "cellular automata" to generate the terrain (basically checking blocks adjacent other blocks and changing them accordingly). It uses nested fast loops for instant world generation at the start of the frame. It was made with this flash tutorial as a guide and converted from pseudo code to mmf2.
How many generations are you running the automaton for?Correct me if I'm wrong, but it looks like just 1, rather than the 8 suggested in the article.
Also, it's rather slow - I'd guess if you just used an array instead of detectors etc, it would be quite a lot more efficient.
You're right it's just once. Personally I felt like the one loops output looked more realistic than the eight loop output, but I guess you could change that if you wanted to. I'll take your advice on the array and try to optimize it some more, thanks.
I took the liberty of making an example that follows the article a bit more closely, just in case it's any good to you: http://skydrive.live.com/redir?resid=B1E7EE094271BBDA!545
btw: Your "Medieval" project sounds interesting - let me know if you want any help with it
Wow Sketchy this example is phenomenal, blows mine out out of the water haha. Glad you're interested in my project; I'll be sure to drop you a comment or question if I'm stuck or need help. Thanks. Comment edited by Sumo148 on 10/9/2012