10-10-2006, 11:19 AM
So, I believe this has been discussed before, if I remember correctly. But I just want to know one thing.
Currently the map is being blited with information from the GameLoop. With call bltMask etc.. So it most go from x=0 to max_mapx. But instead of doing that. Can't you make it so it simply only draws the area around the char. For example:
Would that work, Im in school now so I don't know the correct name for call bltMask and such.
Currently the map is being blited with information from the GameLoop. With call bltMask etc.. So it most go from x=0 to max_mapx. But instead of doing that. Can't you make it so it simply only draws the area around the char. For example:
Code:
For x = GetPlayerX(index) - 2 to GetPlayerX(index) + 2
For y = GetPlayerY(index) - 2 to GetPlayerY(index) + 2
' The blitting part..
Next y
Next x
Would that work, Im in school now so I don't know the correct name for call bltMask and such.