Hello Everyone,
My next problem is (cause I'm trying to not waste more memory then needed for images) is this , I have a rotating moon, that turns to you, then Yawns...and turns back... waits for a bit and does this again.
Currently I'm doing it like this :
Code:
Case round(Moon.AnimPos) of
0..71 : Moon.AnimSpeed:=20;
72..85 : Moon.AnimSpeed:=10;
86..155 : Moon.AnimSpeed:=20;
156 :
begin
Moon.AnimStart:=156;
Moon.AnimStop:=156;
Counter:=Counter+1;
if Counter = 400 then
begin
Moon.AnimStart:=0;
Moon.AnimStop:=156;
Moon.AnimPos:=0;
Counter:=0;
end;
end;
end;
The problem is that 86..155 should not be there... it's exactly the same as 0..71 but only in reverse... I could not figure out how can I move a Sprite Animation backwards ... tried the obvious...by setting sSprite.AnimStart:=71 , AnimStop:=0 but does not work...
1. Is this solvable?
2. I thought about it that maybe I'm completely wrong here... and the SpriteEngine is only supposed to go trough images in one direction and that is only forward and not backwards.
Thanks
Rob
Bookmarks