isometric smooth scrolling map
-
Thursday, March 03, 2011 11:37 AM
Ok - this has probably been discussed, but I've reached information overload and just can't find a good example.
Further, all the changes from SL2 up to 4 causes a headache to set in when trying to determine "best practices". :)
I am trying to build a simple isometric proof of concept using SL 4.
I have an animated sprite working - so far so good.
Now, I want to load a map that can scroll (based on where the character is on the map).
Thus, I have a large map (say 2000x2000 pixels) that I only want to show a "window" of 500x500 at a time.
What is the best way in SL 4 to programmatically "slide" the map up/down/left/right as the character moves towards the edge?
I figure some kind of "negative offset" where the map-image slides around. I think this is probably a better performer than going with individual 50x50 tiles for the map.
Thoughts?
-Dave
All Replies
-
Monday, March 07, 2011 2:20 AM
Hi,
Silverlight has a feature called DeepZoom, I think that's what you need.
Try to read these documents to get start:
http://msdn.microsoft.com/en-us/library/cc645050%28VS.95%29.aspx
http://msdn.microsoft.com/en-us/library/dd901589(VS.95).aspx

