Sprite example using RWsSprite?
Login to reply to this topic.
Fri, 2004-11-05 04:08
Joined: 2004-06-02
Forum posts: 30
I'm trying to create a simple sprite-based animation for Series 60 using RWsSprite. Is there a document or sample code on using this class?

Fri, 2004-11-05 11:49
Joined: 2004-06-06
Forum posts: 205
in sdk examples there i are some check "Epoc32ex\Graphics"

Best regards,
Michal Laskowski

Fri, 2004-11-05 19:42
Joined: 2004-06-02
Forum posts: 30
Thanks Michal. I need to study how to do transparency in Symbian.

However, I wanted my sprites to change as they move, i.e. I have multiple images of a character with his legs in different positions whch I want to show as he moves to make it look like he's walking. Are there any examples of that?
Fri, 2004-11-05 21:08
Joined: 2004-06-06
Forum posts: 205
as i remember there is animated sprite example. it was in epoc32ex\Graphics\WS\BitmapSprite. also its showing transparency. transparency is made with masked blitting.

Best regards,
Michal Laskowski

Fri, 2004-11-05 21:32
Joined: 2004-06-02
Forum posts: 30
Perfect. Thank you very much, Michal.
Sun, 2004-11-07 03:44
Joined: 2004-06-02
Forum posts: 30
So far so good. I'm creating a sprite with RWsSprite::Construct and RWsSprite::AppendMember, and animating it with RWsSprite::Activate. But now I want to replace my talking character sprite with the walking sprite.

I precreated the two sprites and thought I'd hide my talking sprite and replace it with the walking sprite. But I can't find any way to hide an existing sprite without Closing it, which would destroy it and I want to keep it around to display later.

There's no RWsSprite::Deactivate; how do I stop displaying a sprite?

copyright 2003-2009 NewLC SARL