thegooglecodearchive / los-cocos

Automatically exported from code.google.com/p/los-cocos
0 stars 0 forks source link

setting arbitrary anchor in ActionSprite doesn't work #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. if you add an anchor keyword argument (some_number, some_number) to the
ActionSprite constructor, it will add a .anchor property to the sprite
instead of setting anchor_x and anchor_y. 
2. if you dont include an arbitrary anchor, it will correcly add it to both
animations and static images.

What is the expected output? What do you see instead?
arbitrary anchors should also set anchor_x and anchor_y

What version of the product are you using? On what operating system?
cocos 0.3 rev 550

Please provide any additional information below.
I don't know how I should submit patches. im still kinda newbie and still
dont know how to use subversion, just some bazaar right now for my own
code- of course i can learn subversion too.
but I attached a pseudo-patch anyway (its the entire sprite.py file, with
comments on patch start and patch end).

Original issue reported on code.google.com by twoelz on 5 May 2008 at 6:58

Attachments:

GoogleCodeExporter commented 9 years ago
i will fix it differently. because when you set the "children_anchor" for the 
sprite,
it wont change the images anchor. so setting "anchor = (x,y)" should work.

Original comment by lucio.to...@gmail.com on 5 May 2008 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by lucio.to...@gmail.com on 5 May 2008 at 7:55

GoogleCodeExporter commented 9 years ago
now you can also change the anchor after creation

fixed in rev 551

Original comment by lucio.to...@gmail.com on 5 May 2008 at 9:42