Moving path and map size

Started by
4 comments, last by HellRiZZer 23 years, 11 months ago
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?
Advertisement
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.
Thanks for that!!
But, I already was ther and didn''t understand it fully..
Maybe there is someone who can make thids algorithm on VB??
I''ll help him too...
TA anyway!!
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.

You can find his source code at http://www.riversoftavg.com/downloads.htm.



Ferretman

From the High Mountains of Colorado

Ferretman
ferretman@gameai.com
From the High Mountains of Colorado
GameAI.Com

Ups, the file isn''t found.. try again and thanks anyway!! )
Oops...it was there the other day. He must have been fiddling with his web site...it''s been there on and off. Did you email the site owner?

Ferretman

Ferretman
ferretman@gameai.com
From the High Mountains of Colorado
GameAI.Com

This topic is closed to new replies.

Advertisement