********** SPRITE ACTIONS ********** This section is involved with how sprites behave; more technically with their action references. This takes some time to explain. There are many subrotuines and such that tell sprites how to act, these are hard to alter, but you can see simple patches for them in other sections, for example the speed patches in section 2.) However, the greatest part of what makes a sprite what it is is kept in a small 30 character long string that defines the sprite's animation, animation speed, collision reference and more. There are literally hundreds of these strings and they are all stored one after the other amongst text and error lists. Rather than have a lot of 'goto' instructions in game, sprites use simple references to these. The references start with $2EE70 as 'zero' Since the reference defines the string, and the string defines almost everything else, you can change how a sprite acts by changing these. There are two kinds used, first those used to change a sprite, such as when a Blooguard is spawned or wants to clobber; these are stored in the sprite action proper. They occur randonly or when certain things happpen. The second kind are stored in the strings later on in the program; each string has a reference at the end that tells the sprite what to do next. So for example, the Bloog is spawned with a action of the first kind, then cycles forever between two actions of the second kind (Walk 1 and walk 2) until something happens to it. (It gets shot.) You will thus notice in the lists following a lot of individual spawning actions, followed by long lists of 'looping' actions. All can be edited into anything you want, but try to remember to make sense; actions cycle on purpose and you don't want to have your Bloog suddenly become a gem and vannish now do you? Now on to editing these actions; for a list of what action does what, look at the previous section; it can get pretty complicated, but usually you can get a 'feel' for how things work; not all actions can be used everywhere, some can be used only on the map, or only with items or Keen. Others may cause the sprite to freeze If your game crashes because it's spawned an uncached sprite you'll need to add a sprite to your level. (For example if you make your Bloog turn into Molly when shot, all levels with Bloogs must also have Molly in them, or you must patch the cache.) There are two bits of shorthand you should know; any patch with 'spawn' in it means that the game uses this to create a sprite from nothing; it's where a sprite 'starts' Any patch with [Random] in it means that the game randomly changes a sprite to do this, like slug sliming. To change a action, simply find the entry on the action list you want and replace the default action with this. Remember to think things through though, for example, if you make a Bloog spawn a Fleex, all difficulties of Bloog will do this and will act *exactly* like a Fleex, if you patch the Fleex, the Bloogs will also be affected. Loops usually start somewhere, move on step by step, then at the last step go back to the beginning, and so on and so on... so be careful not to break a loop accidently or get yourself into troubble. You can 'steal' space from other sprites and give it to others; if you for example make the Orbatrix bounce only (This can be done by altering one of its actions) all of the floating strings can be used by another sprite, say, to add another two animation frames to the Babobba. (You will of course have to patch the animations, animation speeds, etc or your Babobba will become an Orbatrix!) Keen is very complex and his actions are grounped into the next section, '11.)action_Keen' This section uses the same rules as here, but deals only with Keen. Now that that's out of the way, here are the sprite actions: ### #AIRBOARD ### %patch $10156 $1DD8W #Plat %patch $103C7 $1DF6W #Plat %patch $104A1 $1DF6W #Plat %patch $10403 $1E14W #Plat %patch $10488 $1E14W #Plat %patch $1046B $1E32W #Sit plat? %patch $104EB $1E50W #Easy only sitting platform %patch $10541 $1E6EW #Moving plat? %patch $107A9 $1E8CW #Platform sit? %patch $10825 $1EAAW #Platform sit to fall? ### #BABOBBA ### %patch $12151 $2F48W #Spawn [Jump] %patch $12333 $2F84W #Land without shooting %patch $12201 $2FA2W #Land and shoot %patch $122C1 $2FC0W #When shot sitting [Stunned] %patch $122E0 $2FC0W #When shot jumping [Stunned] %patch $1217C $2FFCW #Nap %patch $121E9 $30CEW #Babobba's shot %patch $12379 $3128W #Babobba's shot die ### #BIP ### %patch $11786 $29A8W #Bip spawn [Stand] %patch $11AAB $29A8W #Bip spawn from crashed bipship [Stand] %patch $117B3 $2A3EW #Bip squashed ### #BIPSHIP ### %patch $11821 $2A5CW #Bipship spawn [Fly] %patch $11A00 $2A98W #Bipship turn %patch $11AD3 $2B10W #Bipship shot [Crash] %patch $11A53 $2B6AW #Bipship smoke [When hits ground] %patch $1195C $2A7AW #Bipship's shot ### #BLOOGUARDS ### %patch $10950 $1F7CW #Blooguard spawned %patch $109C4 $1FF4W #Blooguard slam %patch $10A17 $206CW #Blooguard shot ### #BLOOG ### %patch $10887 $1EE6W #Bloog spawned %patch $108DC $1F5EW #Bloog shot ### #BLOOGLETS ### %patch $10B9A $208AW #Red Blooglet spawn %patch $10BAD $2120W #Yellow Blooglet spawn %patch $10BC0 $21B6W #Blue blooglet spawn %patch $10BD3 $224CW #Green Blooglet spawn ### #BLORB ### %patch $12417 $3164W #Spawn ### #BOBBA ### %patch $11EA9 $2D86W #Spawn [Sit] %patch $1207C $2DC2W #Bobba land without shooting %patch $11F45 $2DE0W #Bobba land and shoot %patch $11F2A $2DFEW #Bobba shoot [Eye sparkle] %patch $120C8 $2EEEW #Bobba's shot hit [Fireball] ### #CEILICK ### %patch $124EC $31BEW #Spawn Ceilick [Sit] %patch $12536 $31DCW #When Keen is ear [Attack] %patch $1258C $3434W #When shot [Stunned Ceilick] ### #ENEMY SHOTS ### %patch $1143D $2732W #Enem shot spawned %patch $11475 $27AAW #Enem shot hit sprites %patch $114B2 $27AAW #Enem shot hit tiles ### #FLECT ### %patch $11B41 $2BE2W #Spawn Flect [Walk] %patch $11BF3 $2BA6W #Flect turn toward Keen %patch $11B6B $2BC4W #Flect turn 1 %patch $11B89 $2BC4W #Flect turn 2 %patch $11BBD $2BC4W #Flect turn 3 %patch $11BDF $2BC4W #Flect turn 4 (When hits walls) %patch $11B78 $2BE2W #Flect turn to Keen %patch $11B96 $2BE2W #Flect turn to Keen %patch $11C22 $2C5AW #Shot Flect [Stunned] ### #FLEEX ### %patch $11D5C $2C78W #Spawn [Walk] %patch $11E3C $2C78W #Fleex shot (Run to Keen.) %patch $11D8D $2D2CW #Look for Keen %patch $11E19 $2D2CW #Fleex when shot 2 (Look) %patch $11DED $2D68W #Fleex killed [Stunned] ### #GIK ### %patch $11174 $2604W #Gik spawned %patch $111EF $265EW #Gik jump %patch $111D5 $267CW #Gik slide %patch $11247 $26B8W #Gik slide hitwall %patch $11293 $26B8W #Gik slide hit? ### #GUNS ### See ENEMY SHOTS ### #ITEMS ### %patch $F47D $1A00W #Viva got %patch $FF83 $1D06W #Sandwich spawned %patch $FFC4 $1D24W #Rope spawned %patch $10005 $1D42W #Card spawned %patch $100C8 $1D60W #Molly spawned ### #MAP ### %patch $FC66 $1B9EW #Map Keen wave %patch $FC9F $1BDAW #Keen climb rope %patch $FE6C $1C70W #Keen dangle from Satelite %patch $FED6 $1C70W #Keen dangle from Satelite %patch $FEF4 $1C70W #Keen dangle from Satelite %patch $F523 $1A90W #Hungry Grabbiter %patch $F514 $1ACCW #Napping Grabbiter %patch $F66D $1ACCW #Napping Grabbiter %patch $F6C3 $1B08W #Map rocket sit? %patch $F95C $1B08W #Map rocket sit %patch $F7AC $1B26W #Flying rocket %patch $F7CD $1B62W #Rocket? %patch $FA98 $1B80W #Rocket? %patch $FAE5 $1C16W #Map rope? %patch $FB32 $1C16W #Map rope? %patch $FD23 $1C52W #Map rope??? %patch $FE14 $1C52W #Map rope??? %patch $FD7E $1C8EW #Satelite spawned %patch $A8B8 $1CE8W #Satelite? ### #MOLLY ### See ITEMS ### #MOVING PLATFORM ### See AIRBOARD ### #NOSPIKE ### %patch $10D22 $2460W #Nospike spawned %patch $110C1 $256EW #Nospike float in air '?' %patch $10E81 $25E6W #Nospike shot killed %patch $10F5F $25E6W #Nospike shot 1 %patch $10F6C $25E6W #Nospike shot 2 %patch $11035 $25E6W #Nospike fall die %patch $10D4D $2460W #Triggers for Nospike flash %patch $10EBC $2460W #and charge; 3 for each possible %patch $11082 $2460W #attackable sprite frame, one %patch $10D8D $247EW #for each health. If a frame %patch $10E55 $247EW #is altered then the Nosp can %patch $10EC3 $247EW #still be shot, but doesn't react. %patch $10D9C $249C %patch $10E28 $249C %patch $10ED9 $249C %patch $10DAB $24BA %patch $10E37 $24BA %patch $10EEF $24BA %patch $10DBA $24D8 %patch $10E46 $24D8 %patch $10F05 $24D8 %patch $10DC1 $24F6 %patch $10E21 $24F6 %patch $10F0A $24F6 %patch $10D94 $2514 %patch $10E30 $2514 %patch $10EC8 $2514 %patch $10DA3 $2532 %patch $10E3F $2532 %patch $10EDE $2532 %patch $10DB2 $2550 %patch $10E4E $2550 %patch $10EF4 $2550 ### #ORBATRIX ### %patch $11540 $27E6W #Orb spawned %patch $115BB $27E6W #Orb Shot %patch $1159F $2822W #Orb curl %patch $11686 $287CW #Orb uncurl ### #ROPE AND GRAPPLING HOOK ### See ITEMS ### #SANDWICH (STUPENDOUS) ### See ITEMS