REQUEST: Idle frame seperate from walking cycle?

Request patches for Keens 1-3.
Post Reply
Zero X. Diamond
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?

Post by Zero X. Diamond »

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?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

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
User avatar
grelphy
Posts: 219
Joined: Fri Sep 05, 2003 12:41 am
Location: the Armageddon Machine

Post by grelphy »

Does that actually give Keen an idle frame, or remove the unused frames from the game?

'Cause if it worked, that'd be awesome.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

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]
Post Reply