#35458 - bobb - Fri Feb 04, 2005 11:24 pm
Hello,
Im trying to make a little game and i made a tiled background with a sprite on it.
I want to know, is it possible for the sprite to detect if it bumps against some place in the background (pixels) or is it usual to place sprites on the map and easy detect if the x & y of the two sprites are the same. Because if i wanted some trees on my map, like I do now in the background, i should make sprites of them to detect the character (sprite) walking against the trees, 20 trees, so that means 20 sprites what seems bad to me because it uses memory?
Thanks a lot.
Im trying to make a little game and i made a tiled background with a sprite on it.
I want to know, is it possible for the sprite to detect if it bumps against some place in the background (pixels) or is it usual to place sprites on the map and easy detect if the x & y of the two sprites are the same. Because if i wanted some trees on my map, like I do now in the background, i should make sprites of them to detect the character (sprite) walking against the trees, 20 trees, so that means 20 sprites what seems bad to me because it uses memory?
Thanks a lot.