If I have a tile 48x48 pixels and have a map of 100x100 tiles, how would be better to do to avoid delays between map scrolling.. like, if i got 20x20 tiles map, it would be easy and smooth scrolling, else or bigger i got not smooth scrolling.. what to do to avoid it?
And also, for example, I click somewhere on map and unit must move there..
How to perform that in terms of changing x and y positions?
What is an A* algorithm and where to find its desc?
The size of your map should have no effect on your scrolling. You only need to draw the part of the map that appears onscreen. Perhaps you''re doing something wrong... As for A*, look here Amit''s Game Programming Page.
Not sure of any Visual Basic implementations of A* (though I''m sure they''re out there), but Thomas Grubb has put together an interesting little A* (path-finding) application written entirely in Delphi. He says it was inspired by Bryan Stout''s excellent A* article in the October/November, 1996 issue of Game Developer. It''s not a bad implementation at all, and it''s a bit easier to follow than some.