REQUEST: Idle frame seperate from walking cycle?
-
- Posts: 44
- Joined: Fri Jun 09, 2006 7:03 pm
- Location: The Planet of the Tiny Hut People
- Contact:
REQUEST: Idle frame seperate from walking cycle?
Here's what I want to do. I want the frame that usually acts as the beginning of the four frame walking animation to serve only as an idle frame, and make the walk loop go Frame 3, Frame 2, Frame 3, Frame 4 instead. Is this possible? If so, how?
In Keen 1-3 sprites are given a start animation, and will then use it and the next x sprites to animate, this can't be changed. By default Keen uses the next 3 sprites after sprites 0 and 4. We can remove the idle animation from this loop easily enough:
Code: Select all
#For Keen 1:
%patch $39EB $01 $00 #Walking right
%patch $39EF $02 #Frames used
%patch $39F6 $04 #Animation speed
%patch $3A0E $05 $00 #Walking left [Will use next four frames]
%patch $3A12 $02 #Frames used
%patch $3A19 $04 #Animation speed
Code: Select all
#For Keen 2:
%patch $682D $01 $00 #Walking right
%patch $683C $02 $00 #Frames used
%patch $6838 $04 #Animation speed
%patch $6850 $05 $00 #Walking left
%patch $685F $02 $00 #Frames used
%patch $685B $04 #Animation speed
Code: Select all
#For Keen 3:
%patch $708B $01 $00 #Walking right
%patch $709A $02 $00 #Frames used
%patch $70B2 $05 $00 #Walking left
%patch $70C1 $02 $00 #Frames used
Unlike Keens 4-6, Keens 1-3 load *all* sprites into memory when they run. The above patches simply stop the walking cycle from using them. Keen will use the still frames when he is standing still.
Code: Select all
#Standing frames for Keen 2:
%patch $6815 $00 $00 #Keen standing facing right [No animation]
%patch $681E $04 $00 #Keen standing facing left [No animation]