O Ilusionista
Captain 100K
Check the first post.
name IzWWind
type none
subject_to_wall 1
subject_to_platform 1
subject_to_hole 1
subject_to_minz 0
no_adjust_base 0
offscreenkill 200
anim idle
@script
void self = getlocalvar("self"); //Get calling entity
int Dir = getentityproperty(self, "direction");
float Fram = getentityproperty(self, "animpos") + 1;
float Vx = 1;
float Vz = 2*cos(Fram*30);
if(Dir==0){
Vx = -Vx;
}
changeentityproperty(self, "velocity", Vx, Vz);
@end_script
loop 1
delay 6
offset 60 112
frame data/chars/WWind/IzWWind1.png
frame data/chars/WWind/IzWWind2.png
frame data/chars/WWind/IzWWind3.png
frame data/chars/WWind/IzWWind4.png
frame data/chars/WWind/IzWWind5.png
frame data/chars/WWind/IzWWind6.png #
frame data/chars/WWind/IzWWind1.png
frame data/chars/WWind/IzWWind2.png
frame data/chars/WWind/IzWWind3.png
frame data/chars/WWind/IzWWind4.png
frame data/chars/WWind/IzWWind5.png
frame data/chars/WWind/IzWWind6.png #
Script compile error: can't find function 'cos'
Script compile error in 'twister': cos line 12, column
name twister
type none
subject_to_wall 1
subject_to_platform 1
subject_to_hole 1
subject_to_minz 0
no_adjust_base 0
offscreenkill 200
anim idle
@script
void self = getlocalvar("self"); //Get calling entity
int Dir = getentityproperty(self, "direction");
float Fram = getentityproperty(self, "animpos") + 1;
float Vx = 1;
float Vz = 2*cos(Fram*30);
if(Dir==0){
Vx = -Vx;
}
changeentityproperty(self, "velocity", Vx, Vz);
@end_script
loop 1
delay 6
offset 60 112
frame data/chars/kitana/twister/wind301.png
frame data/chars/kitana/twister/wind302.png
frame data/chars/kitana/twister/wind303.png
frame data/chars/kitana/twister/wind304.png
frame data/chars/kitana/twister/wind305.png
frame data/chars/kitana/twister/wind306.png #
frame data/chars/kitana/twister/wind307.png
frame data/chars/kitana/twister/wind308.png
frame data/chars/kitana/twister/wind309.png
frame data/chars/kitana/twister/wind310.png
frame data/chars/kitana/twister/wind311.png
frame data/chars/kitana/twister/wind312.png #
dantedevil said:Hello!
Sorry for the delay, i m' working a lot in the chosen one, and dont have much time.
First to all thanks for all your help.
Finally can test the script and crash with this error:
Code:Script compile error: can't find function 'cos' Script compile error in 'twister': cos line 12, column
@script
void self = getlocalvar("self");
int counter;
float x,z;
if(frame==0)
{
counter = 0;
}
if (frame>0)
{
x = -sin(counter/1.45)*2;
z = -cos(counter/1.45)/3;
changeentityproperty(self, "velocity", x, z, 0) ;
counter +=5;
}
@end_script
float Vz = 1*cos(Fram*30);
I want the movement of the twister like in the Ilusionista video, the Storm hurricane.
float Vx = 2*cos(Fram*30);
float Vz = 1*cos(Fram*30);
O Ilusionista said:Have you tried the codes I posted at the first post? There are two options there.
name shurr
type none
shadow 0
nolife 1
remove 0
Antigravity 100
candamage enemy obstacle
subject_to_minz 1
subject_to_maxz 1
subject_to_wall 1
subject_to_hole 1
subject_to_obstacle 1
subject_to_platform 1
no_adjust_base 0
palette none
anim follow2
delay 3
loop 0
offset 56 143
hitflash flash2
attack11 41 64 32 79 30 1 0 0 5 20
dropv 10 0.5
damageonlanding 10 1
@script
void self = getlocalvar("self");
void time = openborvariant("elapsed_time");
void mTime = time - (openborvariant("elapsed_time")-100);
float a,x,y;
x = -sin(time/1.45)*2;
y = -cos(time/1.45)/3;
changeentityproperty(self, "velocity", x, y, 0) ;
@end_script
drawmethod scalex 0.9
frame data/chars/misc/ahelper/proj/hur00.png
drawmethod scalex 0.8
frame data/chars/misc/ahelper/proj/hur01.png
drawmethod scalex 0.7
frame data/chars/misc/ahelper/proj/hur02.png
drawmethod scalxe 0.6
frame data/chars/misc/ahelper/proj/hur03.png
drawmethod scalex 0.5
frame data/chars/misc/ahelper/proj/hur04.png
drawmethod scalex 0.4
frame data/chars/misc/ahelper/proj/hur05.png
drawmethod scalex 0.3
frame data/chars/misc/ahelper/proj/hur06.png
drawmethod scalex 0.2
frame data/chars/misc/ahelper/proj/hur07.png
drawmethod scalex 0.1
frame data/chars/misc/ahelper/proj/hur08.png
@cmd killentity getlocalvar("self")
frame data/chars/misc/ahelper/proj/hur08.png
anim idle
delay 3
loop 1 9 19
offset 56 143
hitflash flash2
@script
void self = getlocalvar("self");
int Summon = getentityvar(self, 1);
int time;
float x,z;
if(frame==0){
//changeentityproperty(self,"blink",2);
setentityvar(self, 1, openborvariant("elapsed_time"));
time = 0;
}
if (frame==1){
int Screen = openborvariant("hResolution")/2; // Get screen width
int XPos = openborvariant("xpos");
int Width = openborvariant("PLAYER_MIN_Z")+(openborvariant("PLAYER_MAX_Z") - openborvariant("PLAYER_MIN_Z")); // Get width
changeentityproperty(self, "position", Screen+XPos-120, Width+1, 0);
}
if (frame>0)
{
x = sin(time/1.45)*2;
z = cos(time/1.45)/2;
changeentityproperty(self, "velocity", x, z, 0) ;
time +=7;
//setglobalvar("HelperControl", time);
}
if(Summon <= openborvariant("elapsed_time") - 1000){
setentityvar(self, 1, NULL());
performattack(self,openborconstant("ANI_FOLLOW2"));
}
@end_script
frame none
attack11 41 64 32 79 50 1 1 0 5 20
dropv 10 0.5
damageonlanding 10 1
sound data/chars/misc/ahelper/proj/hurricane.wav
drawmethod scalex 0.2
frame data/chars/misc/ahelper/proj/hur01.png
drawmethod scalex 0.3
frame data/chars/misc/ahelper/proj/hur02.png
drawmethod scalxe 0.4
frame data/chars/misc/ahelper/proj/hur03.png
drawmethod scalex 0.5
frame data/chars/misc/ahelper/proj/hur04.png
drawmethod scalex 0.6
frame data/chars/misc/ahelper/proj/hur05.png
drawmethod scalex 0.7
frame data/chars/misc/ahelper/proj/hur06.png
drawmethod scalex 0.8
frame data/chars/misc/ahelper/proj/hur07.png
drawmethod scalex 0.9
frame data/chars/misc/ahelper/proj/hur08.png
nodrawmethod
frame data/chars/misc/ahelper/proj/hur09.png
frame data/chars/misc/ahelper/proj/hur00.png
frame data/chars/misc/ahelper/proj/hur01.png
frame data/chars/misc/ahelper/proj/hur02.png
frame data/chars/misc/ahelper/proj/hur03.png
frame data/chars/misc/ahelper/proj/hur04.png
frame data/chars/misc/ahelper/proj/hur05.png
frame data/chars/misc/ahelper/proj/hur06.png
frame data/chars/misc/ahelper/proj/hur07.png
frame data/chars/misc/ahelper/proj/hur08.png
#|edited by openBor Stats v 0.67
if(Summon <= openborvariant("elapsed_time") - 1000){
setentityvar(self, 1, NULL());
performattack(self,openborconstant("ANI_FOLLOW2"));
}