Original Post
Hi guys
I have a bitmap named obstacle.
i have drawn bitmap the bitmap in several places.
psedo code.
draw(obstacle,10,10,null);------------1
draw(obstacle,45,10,null);------------2
draw(obstacle,16,10,null);------------3
draw(obstacle,50,60,null);------------4
draw(obstacle,20,50,null);------------5
my problem is how to identify these 5 drawn objects indivually.
eg:- for collision detection i have a character.
if it collides with anyone it should die.
i have like
charcollides with obstacle then die.
my prob is it die only when it collides with first obstacle since all obstacles names are same.
what to do ???
one more thing how to get accurate values from accelometer ?
Thanks in advance
I have a bitmap named obstacle.
i have drawn bitmap the bitmap in several places.
psedo code.
draw(obstacle,10,10,null);------------1
draw(obstacle,45,10,null);------------2
draw(obstacle,16,10,null);------------3
draw(obstacle,50,60,null);------------4
draw(obstacle,20,50,null);------------5
my problem is how to identify these 5 drawn objects indivually.
eg:- for collision detection i have a character.
if it collides with anyone it should die.
i have like
charcollides with obstacle then die.
my prob is it die only when it collides with first obstacle since all obstacles names are same.
what to do ???
one more thing how to get accurate values from accelometer ?
Thanks in advance