android - How to set coordinate of point other than default? -


i have semicircle sprite . default way set it's coordinates sprite.setx() , sprite.sety() . want set coordinate of point other default top left corner . namely , want set local coordinate of (0,getheight(piece)/2) coordinate of scene .

now , can get coordinates of point :-

final float[] endcoordinate = this.convertlocaltoscenecoordinates(0, mpiece1.getheight()); 

and use these coordinates other places in game.

but , can't find anywhere on how set coordinate of point other top left corner coordinates .

now know can setx(setingvaluex) , sety(setingvaluy - mpiece1.getheight()) , in situation need set other point explicitly .


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -