Solved Setlayer during specific animation

Question that is answered or resolved.

dantedevil

Well-known member
I' m working a lot creating the new stages fatalities.
I need a way to set the layer in certain death animations, to the frames show in the bottom of the screen.
Because no look good the dead body, showing through the palyer and enemies.
 
Last edited:
Solution
Are you trying to make the entity be frontal of others just like Eyedol clubs you to the screen? If so, you could possibly add a setlayer with script for a specific frame by changing the entity property. It's like a standard setlayer we use but scripted with changeentityproperty.

Example:
Code:
anim death

@script
void self = getlocalvar("self");

if(frame == 5){
  changeentityproperty(self, "setlayer", 1000); //Make entity show way in front of others through screen.
}

@end_script

offset 55 128
delay 10
@cmd velo001 -0.8 2 4 # {x} {z} {y}
frame data/chars/enemy/fallout1.png
frame data/chars/enemy/fallout2.png
frame data/chars/enemy/fallout3.png
frame data/chars/enemy/fallout4.png
frame data/chars/enemy/fallout5.png
@cmd velo001 0 0.5...
Are you trying to make the entity be frontal of others just like Eyedol clubs you to the screen? If so, you could possibly add a setlayer with script for a specific frame by changing the entity property. It's like a standard setlayer we use but scripted with changeentityproperty.

Example:
Code:
anim death

@script
void self = getlocalvar("self");

if(frame == 5){
  changeentityproperty(self, "setlayer", 1000); //Make entity show way in front of others through screen.
}

@end_script

offset 55 128
delay 10
@cmd velo001 -0.8 2 4 # {x} {z} {y}
frame data/chars/enemy/fallout1.png
frame data/chars/enemy/fallout2.png
frame data/chars/enemy/fallout3.png
frame data/chars/enemy/fallout4.png
frame data/chars/enemy/fallout5.png
@cmd velo001 0 0.5 -0.2
delay 78
frame data/chars/enemy/fallout6.png
 
Solution
Works perfect my friend!
Thanks to you, I just finished the new stage fatality. It is at the stage Subway ofMK3.
Here you can throw the enemy on the tracks, to die electrocuted. Soon I will share a video to show.
 
Glad I helped. I always thought you were gonna make a KI Fatality (can't remember the name already) which you knock your opponent out to the camera (I should've used the term "camera" in my last post).
 
Back
Top Bottom