pkmnfrk
03-16-2009, 11:19 PM
For some reason, this doesn't work quite right for me:
import "std.zh"
ffc script testShooter {
void run() {
eweapon fb;
while(true) {
fb = Screen->CreateEWeapon(EW_BEAM);
fb->X = this->Y;
fb->Y = this->X;
fb->Dir = DIR_RIGHT;
Waitframes(4);
}
}
}
It spawns the projectiles correctly, they are not aimed the right way. Er, the sprite isn't. They travel right, but they all face up.
A (slightly different script's) example:
http://zctut.com/zelda009.png
Am I missing something, or is this a bug?
import "std.zh"
ffc script testShooter {
void run() {
eweapon fb;
while(true) {
fb = Screen->CreateEWeapon(EW_BEAM);
fb->X = this->Y;
fb->Y = this->X;
fb->Dir = DIR_RIGHT;
Waitframes(4);
}
}
}
It spawns the projectiles correctly, they are not aimed the right way. Er, the sprite isn't. They travel right, but they all face up.
A (slightly different script's) example:
http://zctut.com/zelda009.png
Am I missing something, or is this a bug?