Originally Posted by
C-Dawg
1. No. There is no command to create an FFC. YOu need to have an FFC to use on the screen already. What I do is make sure that, on every screen, there is an FFC #1 that is invisible by default. Then, to "make an FFC appear" you use Screen->FFC(0); and then change the properties of that FFC. Switch it's combo, make it simulate walkability, whatever.
Why did that simple and obvious idea escape me? XD All I'd really have to do is move it. XD
2. Just find out which direction Link is facing, then send the FFC to the nearest X,Y ordered pair in front of Link, such that both X and Y are divisible by 16. (i.e. x/16 = 0, y/16 = 0). So all you have to do is figure out how far X and Y are from being both divisible by 16, and move the FFC accordingly. For instance, when it spawns, divide its X and Y by 16 and see what the remainders are. Move it up or down, left or right, based on those remainders to zero them out. That is, if the FFC finds itself at (34,16), a division will show that X leaves a remainder of 2 and Y leaves a remainder of 0. So you need the FFC to move X-2 to put it on the grid. If the remainder is greater than 8, add to its coordinates rather than subtract from it.
Whoa, hold up now. I barely know how to script, so I'm going to need to be brought step-by-step on how to work something like that. Please note that I learn quickly, and telling me that I should have more scripting experience isn't going to make me give up. :p
3. No. Have one set up to use. When it's done being a block, set it back to invisible and clear it's abilities.
???
4. No idea, I havn't messed with item scripts yet.
EDIT: We DO have access to the modulous function % for remainders, don't we?