White Dragon
New member
From last OpenBOR build:
http://www.chronocrash.com/forum/index.php?topic=3117.msg42377#msg42377
the animationscript event take a big improvement.
Now you can use animationscript event in file or in entity.txt and between animations and @cmd SIMULTANEOUSLY!!
Example now this script works and is VALID:
because now all animationscript will be unified into ONE!
so like in that example:
animationscript data/scripts/animationscript.c
+
@script
void self = getlocalvar("self");
int frame = getlocalvar("frame");
if ( frame > 3 ) {
changeentityproperty(self,"animpos",0);
}
@end_script
+
@cmd changeentityproperty getlocalvar("self") "animpos" 0
it will be unified into ONE animationscript event.
It's fantastic because now you can choose to use script between animations (@script ... @end_script or @cmd) and script into an imported file (animationscript data/scripts/animationscript.c) SIMULTANEOUSLY!!
In previous builds you were forced to choose a way...
http://www.chronocrash.com/forum/index.php?topic=3117.msg42377#msg42377
the animationscript event take a big improvement.
Now you can use animationscript event in file or in entity.txt and between animations and @cmd SIMULTANEOUSLY!!
Example now this script works and is VALID:
Code:
name XXX
type player
animationscript data/scripts/animationscript.c
anim WALK
@script
void self = getlocalvar("self");
int frame = getlocalvar("frame");
if ( frame > 3 ) {
changeentityproperty(self,"animpos",0);
}
@end_script
loop 1 0 8
offset 14 61
bbox 7 6 18 54
delay 10
frame data/chars/leo/012.gif
sound data/sounds/step1.wav
frame data/chars/leo/013.gif
frame data/chars/leo/014.gif
frame data/chars/leo/015.gif
frame data/chars/leo/016.gif
sound data/sounds/step1.wav
frame data/chars/leo/017.gif
frame data/chars/leo/018.gif
@cmd changeentityproperty getlocalvar("self") "animpos" 0
frame data/chars/leo/019.gif
frame data/chars/leo/019.gif
delay 10
offset 14 48
bbox 14 2 30 41
frame data/chars/leo/rise05.gif
frame data/chars/leo/rise05.gif
because now all animationscript will be unified into ONE!
so like in that example:
animationscript data/scripts/animationscript.c
+
@script
void self = getlocalvar("self");
int frame = getlocalvar("frame");
if ( frame > 3 ) {
changeentityproperty(self,"animpos",0);
}
@end_script
+
@cmd changeentityproperty getlocalvar("self") "animpos" 0
it will be unified into ONE animationscript event.
It's fantastic because now you can choose to use script between animations (@script ... @end_script or @cmd) and script into an imported file (animationscript data/scripts/animationscript.c) SIMULTANEOUSLY!!
In previous builds you were forced to choose a way...