********** CHANGE MOTION[KEEN]: ********** This section relates to the little known action property of whether a sprite can change its horizontal and vertical motion. Every aniamtion of every sprite in Keen has two variables set aside telling the game whether it clings to walls or floors. This is not related to movement in any way; a Bounder can bound left, right, up and down without using these parameters. What these control is if the sprite clings to the ground or wall, that is, can it crawl up and down hills or walls? The Slug is a good example; it doesn't fall, but clings to the ground; it can crawl up hills, but will then crawl down them again. It there for has a 'Cling to ground' value of 1. If it did not have this, it would crawl up hills, but then not be able to crawl down! (For Slugs the situation is worse, without this they think they are floating in air and do nothing but spin around!) The 'cling to walls' value is needed by some 'in the air' sprites to make sure they don't accidentally clip into walls. (This was done for the convenience of the programmers.) As stated, there are two values for these variables; 0 or 1. Most sprites use 0, but ALL crawling (And some sitting) sprites must cling to the gound, or unhapiness may result. (As a rule, if a crawling sprite doesn't cling, when it comes to an edge, it'll just float right along in the air. This can be useful of course.) You can use this section to make Keen do some wacky stuff; try changing the walking $01 to $00 and see what happens when Keen tries to walk down hills for example. The list of Keen entries is divided into several sections to help make it easier to find what you want; standing walking and looking, jumping and pogoing, shooting, poles, idle, map and misc ### #Standing and walking ### #Changes v so Keen can walk down hills, even when looking u/d %patch $2F802 $0000W $0001W #Standing still %patch $2FF0A $0001W $0001W #Walking 1 %patch $2FF28 $0001W $0001W #Walking 2 %patch $2FF46 $0001W $0001W #Walking 3 %patch $2FF64 $0001W $0001W #Walking 4 %patch $2FA78 $0000W $0001W #Look up 1 %patch $2FA96 $0000W $0001W #Look up 2 %patch $2FAB4 $0000W $0001W #Look down 1 %patch $2FAD2 $0000W $0001W #Look down 2 %patch $2FAF0 $0000W $0001W #Look down 3 %patch $2FB0E $0000W $0001W #Look down 4 ### #Jumping and pogoing ### #Pogoing needs to change *h* to avoid clipping into walls #Jumping doesn't change anything %patch $2FF82 $0001W $0000W #Start pogo %patch $2FFA0 $0001W $0000W #Pogo 1 %patch $2FFBE $0001W $0000W #Pogo 2 [Bounce] %patch $2FFDC $0000W $0000W #Jump 1 %patch $2FFFA $0000W $0000W #Jump 2 %patch $30018 $0000W $0000W #Jump 3 [Falling] %patch $30036 $0000W $0000W #Jump 4 [Falling] ### #Shooting ### #Changes v sometimes depending on what Keen's doing, #i.e if he is sitting on the ground. Also changes h sometimes, pay attention! %patch $2FBE0 $0000W $0001W #Shoot l/r 1 %patch $2FBFE $0000W $0001W #Shoot l/r 2 %patch $2FC1C $0000W $0001W #Shoot up 1 %patch $2FC3A $0000W $0001W #Shoot up 2 %patch $30054 $0000W $0000W #Shoot l/r while jumping 1 %patch $30072 $0001W $0000W #Shoot l/r while jumping 2 [Changes *h* to avoid wall clipping!] %patch $30090 $0000W $0000W #Shoot l/r while jumping 3 %patch $300AE $0000W $0000W #Shoot up while jumping 1 %patch $300CC $0001W $0000W #Shoot up while jumping 2 [Changes *h*] %patch $300EA $0000W $0000W #Shoot up while jumping 3 %patch $30108 $0000W $0000W #Shoot d while jumping 1 %patch $30126 $0001W $0000W #Shoot d while jumping 2 [Changes *h*] %patch $30144 $0000W $0000W #Shoot d while jumping 3 %patch $2FE56 $0000W $0000W #Shoot l/r on poles 1 %patch $2FE74 $0000W $0000W #Shoot l/r on poles 2 %patch $2FE92 $0000W $0000W #Shoot up on poles 1 %patch $2FEB0 $0000W $0000W #Shoot up on poles 2 %patch $2FECE $0000W $0000W #Shoot d on poles 1 %patch $2FEEC $0000W $0000W #Shoot d on poles 2 %patch $305AE $0000W $0000W #Shot 1 %patch $305CC $0000W $0000W #Shot 2 %patch $305EA $0000W $0000W #Shot 3 %patch $30608 $0000W $0000W #Shot 4 %patch $30626 $0000W $0000W #Shot blast 1 %patch $30644 $0000W $0000W #Shot blast 2 ### #Poles ### #As Keen isn't touching groud, nothing is changed here %patch $2FD66 $0000W $0000W #Sitting on pole %patch $2FD84 $0000W $0000W #Climbing up 1 %patch $2FDA2 $0000W $0000W #Climbing up 2 %patch $2FDC0 $0000W $0000W #Climbing up 3 %patch $2FDDE $0000W $0000W #Climbing down 1 %patch $2FDFC $0000W $0000W #Climbing down 2 %patch $2FE1A $0000W $0000W #Climbing down 3 %patch $2FE38 $0000W $0000W #Climbing down 4 ### #Idle ### #Here Keen is on the ground, v is changed %patch $2F820 $0000W $0001W #Bored, look up [Go to stand] %patch $2F83E $0000W $0001W #Very bored, shrug 1 %patch $2F85C $0000W $0001W #Very bored, shrug 2 %patch $2F87A $0000W $0001W #Very bored, shrug 3 %patch $2F898 $0000W $0001W #Very bored, shrug 4 %patch $2F8B6 $0000W $0001W #Very bored, shrug 5 %patch $2F8D4 $0000W $0001W #Very bored, shrug 6 [Go to stand] %patch $2F94C $0000W $0001W #Extremely bored, start reading a book 1 %patch $2F96A $0000W $0001W #Extremely bored, start reading a book 2 %patch $2F988 $0000W $0001W #Extremely bored, start reading a book 3 %patch $2F9A6 $0000W $0001W #Extremely bored, start reading a book 4 %patch $2F9C4 $0000W $0001W #Extremely bored, read a book 1 %patch $2F9E2 $0000W $0001W #Extremely bored, read a book 2 %patch $2FA00 $0000W $0001W #Extremely bored, read a book 3 [Go to 1] %patch $2FA1E $0000W $0001W #Stop reading 1 %patch $2FA3C $0000W $0001W #Stop reading 2 %patch $2FA5A $0000W $0001W #Stop reading 3 [Go to stand] ### #Map ### #We have a mix here, be careful %patch $30416 $0001W $0000W #Walking [Changes *h* to avoid clipping into walls] %patch $30308 $0000W $0000W #Riding foot 1 %patch $30326 $0000W $0000W #Riding foot 2 %patch $30344 $0001W $0000W #Swimming [Changes *h* to avoid clipping into walls] %patch $30362 $0000W $0000W #Bored, waving %patch $30380 $0000W $0000W #Bored, waving %patch $3039E $0000W $0000W #Bored, waving %patch $303BC $0000W $0000W #Bored, waving %patch $303DA $0000W $0000W #Bored, waving %patch $303F8 $0000W $0000W #Bored, waving %patch $30464 $0000W $0000W #Flag waving 1 %patch $30482 $0000W $0000W #Flag waving 2 %patch $304A0 $0000W $0000W #Flag waving 3 %patch $304BE $0000W $0000W #Flag waving 4 %patch $304DC $0000W $0000W #Flag flip 1 %patch $304FA $0000W $0000W #Flag flip 2 %patch $30518 $0000W $0000W #Flag flip 3 %patch $30536 $0000W $0000W #Flag flip 4 %patch $30554 $0000W $0000W #Flag flip 5 %patch $30572 $0000W $0000W #Flag flip 6 %patch $30590 $0001W $0000W #Flag flip 7 [This changes h to clip into holder] ### #Misc ### #Depending on what Keen does, this often changes v %patch $2F8F2 $0000W $0001W #Mooning 1 %patch $2F910 $0000W $0001W #Mooning 2 %patch $2F92E $0000W $0001W #Mooning 3 %patch $2FB4A $0000W $0000W #Restart level %patch $2FB68 $0000W $0000W #Dead sprawled %patch $2FB86 $0000W $0000W #Dead clutched %patch $2FBA4 $0000W $0000W #Swimming dead sprawled %patch $2FBC2 $0000W $0000W #Swimming dead clutched %patch $2FC58 $0000W $0001W #Flick switches 1 %patch $2FC76 $0000W $0001W #Flick switches 2 %patch $2FC94 $0000W $0001W #Place a gem %patch $2FCB2 $0000W $0000W #Enter doors 1 %patch $2FCD0 $0000W $0000W #Enter doors 2 %patch $2FCEE $0000W $0000W #Enter doors 3 %patch $2FD0C $0000W $0000W #Enter doors 4 %patch $2FD2A $0000W $0000W #Enter doors 5 %patch $2FD48 $0000W $0000W #Enter doors 6 [Go to standing] %patch $30162 $0000W $0000W #Ledgegrip [No change, Floats] %patch $30180 $0000W $0000W #Pulling up from grip 1 %patch $3019E $0000W $0000W #Pulling up from grip 2 %patch $301BC $0000W $0000W #Pulling up from grip 3 %patch $301DA $0000W $0000W #Pulling up from grip 4 %patch $301F8 $0000W $0000W #Pulling up from grip 5 %patch $30216 $0000W $0000W #Pulling up from grip 6 [Go to stand] %patch $30862 $0000W $0000W #Swim 1 %patch $30880 $0000W $0000W #Swim 2 %patch $3089E $0000W $0000W #Swim 3 %patch $308BC $0000W $0000W #Swim 4 %patch $2FB2C $0000W $0000W #Down special? %patch $30662 $0000W $0000W #Door opens 1 %patch $30680 $0000W $0000W #Door opens 2 %patch $3069E $0000W $0000W #Door opens 3 %patch $308DA $0000W $0000W #Keen's bubble 1 %patch $308F8 $0000W $0000W #Keen's bubble 2 %patch $30916 $0000W $0000W #Keen's bubble 3 %patch $30934 $0000W $0000W #Keen's bubble 4