Giant Keese
#1
Posted 22 November 2008 - 04:59 PM
... I really should learn how to script.
#2
Posted 22 November 2008 - 05:33 PM
ffc script extendNPC
{
void run(int n)
{
npc GiantKeese=Screen->LoadNPC(n);
GiantKeese->Extend=3;
GiantKeese->TileHeight=2;GiantKeese->HitHeight=2;
GiantKeese->TileWidth=2;GiantKeese->HitWidth=2;
while(true)
{
Waitframe();
}
}
}
You'll need the giant keese graphics be placed just like the original keese.
Then decide the hp with the enemy editor etc.
And place the ffc script when you want to extend a enemy. This work with any enemy. But some might ignore solidity.
I hope that works.
Edited by lucas92, 22 November 2008 - 05:42 PM.
#3
Posted 22 November 2008 - 07:28 PM
TileHeight and TileWidth work in 'tiles', so you've set that up fine.
But 'HitHeight' and 'HitWidth' work in pixels, so you've set the keese to have a 2-pixel by 2-pixel hitbox, whereas it really wants a 32 by 32 hitbox.
The 'while(true){ Waitframe();}' bit will also compile/work fine, but it doesn't do anything, so it's unnecessary really.
ffc script extendNPC{
void run(int n){
npc GiantKeese = Screen->LoadNPC(n);
GiantKeese->Extend = 3;
GiantKeese->TileHeight = 2; GiantKeese->TileWidth = 2;
GiantKeese->HitHeight = 32; GiantKeese->HitWidth = 32;
}
}
#4
Posted 22 November 2008 - 08:01 PM
I made a custom boss a while ago and it was working just half... I think I've found the mistake. Thanks.
#5
Posted 22 November 2008 - 08:58 PM
#6
Posted 22 November 2008 - 09:20 PM
It's a very basic script anyway. Anyone could have done it.
#7
Posted 23 November 2008 - 12:29 AM
And thanks Lucas and Joe.
Edited by Lithium, 23 November 2008 - 12:41 AM.
#9
Posted 23 November 2008 - 01:01 AM
#10
Posted 23 November 2008 - 02:06 AM
Edited by drzchulo973, 23 November 2008 - 02:18 AM.
#11
Posted 23 November 2008 - 02:15 AM
Oops sorry =p ok 1st you have to set up the giant keese graphics like you would set up a regular keese. Go to the enemy editor and give it life and hit points set the type to keese. Set the ffc script transparent and set D0 to the enemy i.d number and list.
That didn't help me at all. I'm questioning what the hell half of that means, all you did was repeat Lucas.
Clear explanation, please.
Edited by Lithium, 23 November 2008 - 02:23 AM.
#12
Posted 23 November 2008 - 02:26 AM
#13
Posted 23 November 2008 - 02:28 AM
I don't know any of it. I MIGHT have the graphics set up right, but that's it.
Would it kill you to just take some screenshots and make a simple tutorial?
Edited by Lithium, 23 November 2008 - 02:28 AM.
#14
Posted 23 November 2008 - 02:42 AM
#15
Posted 23 November 2008 - 02:48 AM
Take some ****ing screenshots and explain what the hell you're talking about or stop trying, please.
Edited by Lithium, 23 November 2008 - 02:49 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users