Having difficulty manipulating single sprites using Sprite Grabber

Hi, I’ve been using Sprite Grabber (an excellent module; I love it) but I’m having trouble manipulating single sprites (ie. non-animating single images).

At the moment, I’m declaring them as clips that are 1 frame long, last for 1 frame and don’t loop.

So I have a sheet that contains a mixture of stills and animated sprites like this:

[blockcode]
local lorryout = lorryleave:grabSprite(“leave”, false, { getup={6,2,800,1},vanout={1,5,1000,1},bagged={7,1,1,1},stoodstill={8,1,1,1} })
[/blockcode]

Now I’m not sure how to target the “stoodstill” sprite. This works:

[blockcode]
lorryout:playClip(“stoodstill”)
[/blockcode]

But what I really need to do is fade “bagged” into “stoodstill”. While transition.to can take “lorryout” as a target, I can’t do something like this:

[blockcode]
transition.to( lorryout:playClip(“bagged”), { time=1000, delay=500, alpha=0 } )
transition.to( lorryout:playClip(“stoodstill”), { time=1000, delay=1250, alpha=1 } )
[/blockcode]

I’ve tried declaring lorryout:playClip(“stoodstill”) as an object, but that doesn’t work either.

Any pointers?

Oh and for bonus points, are transitions notoriously unreliable or something? I just CANNOT get them to behave as I want. For example, in the example above, I’d expect the transition to overlap by a quarter of a second. No way. What am I doing wrong?

Thanks in advance!
[import]uid: 132606 topic_id: 31544 reply_id: 331544[/import]

Quick bump! I’ve got a feeling this isn’t too complex, but I’m still struggling with it. Would appreciate any pointers.

Cheers
A [import]uid: 132606 topic_id: 31544 reply_id: 126248[/import]

Quick bump! I’ve got a feeling this isn’t too complex, but I’m still struggling with it. Would appreciate any pointers.

Cheers
A [import]uid: 132606 topic_id: 31544 reply_id: 126248[/import]