Hi there,
I’m going to develop a strategy game soon, and it’s going to be the first one I’m doing in flash, and some tips could be very helpful!
One of the main questions I would like to ask is, what’s the best way to create map scrolling, and zooming in/out features?
I know two ways to make scrolling - one is using a dynamic camera (a square mc with a script attached, showing only its area), and one is having an mc with everything inside, then simply move its x and y. I’m not sure which is better, or perhaps there are better techniques I am not aware of?
Now zooming is a bit different, obviously I’ll have to mess with the scale of all mcs, but what if I have an mc zoomed out a lot - wouldn’t the detail of mcs be useless, as players won’t see it anyway from that distance? So I thought of _visible false-ing them, then replace them with a less detailed mc, but will _visible helps this issue? will it really reduce the pressure on the fps?
Another big question came in my mind is what about the huge loops units are going to have every frame, for enemy detection? It sounds like many units will lag the whole game script-ly, and I’m not sure what to do about it.
So any tips would be gladly accepted!
Thanks