It looks like you're new here. If you want to get involved, click one of these buttons!
<<nobr>><<if $Draw_Counter <= 29;>>
<<set $Draw_Counter += 1;>>
<<set $NewTile = $TileSet[$Draw_Counter - 1];>>
<<set $NewIndex = $Draw_Counter - 1;>>
<<print "<div class='cell " + $NewTile + "'>[[GO HERE|" + $NewTile + "_roll][$TileIndex to " + $NewIndex + "]]</div>">>
<<DrawWorld>> /% This is where the recursion happens - it calls itself %/
<<endif>><<endnobr>>
Okay, so here's the thing. All of the above basically works...I mean, the variables all get set, all the links lead where the should, etc. I've debugged that aspect of it. But any time this piece of code is called (specifically with the setter link), the loading time for the game, and for any passage that contains the setter-link, slows to a crawl. I mean, it literally takes about eight seconds to get from a white screen to the first passage of the game, and the same amount of time to move between passages that contain the map. This only happens when I use the setter-link. When I remove [$TileIndex to " + $NewIndex + "], the speeds are back to normal (instantaneous). On top of that, setter links that are used on their own (outside of a <<print>> macro) don't cause any slow down at all. They work as advertised. Has anyone run into this issue before? I'm just utterly mystified.
Comments
If anyone has any idea what might have caused it, I'd love to hear it, if only for the sake of my own sanity. Thanks.