After I done this in a ParticleSystem subclass like this:
class PlayerBox(Sprite):
# other code here..
...
class BoxBlur(ParticleSystem):
img = pyglet.image.load("box.png")
texture = img.texutre()
#...
def __init__(self, playerbox):
self.playerbox= playerbox
def update(self):
self.position = self.playerbox.position
#self.rotation = self.playerbox.rotation
layer = Layer()
playerbox = PlayerBox()
boxblur = BoxBlur(playerbox=playerbox)
layer.add(playerbox)
layer.add(boxblur)
...
The loaded texture turned to be upside down compared to the original.
How do i manually rotate the texture?
Note that i have tried changing the superclass's (CocosNode) rotation
value, and all other emitted particles position, orientation and
rotation changed too.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---