With an rpg game do you use images as tiles or something else and to make a character not run into an object (wall) do you use the point command?
Printable View
With an rpg game do you use images as tiles or something else and to make a character not run into an object (wall) do you use the point command?
Is your character moving a fixed amount each time? (Is it the same length as the tiles?) Or is he moving pixel by pixel each time?
If it's the same length as the tiles, you can BitBlt the tiles on all sides of them to check, else you can use collision detection.
Although, I'd think that one of the best solutions is to make an array. For example, If you have an array, you can record what each point on the grid is, (5,5) = Walkable, (2,1) Non_Walkable etc.
[Edited by Megatron on 06-23-2000 at 07:22 PM]