Well you can't have the event only triggered on specific frames, but in the collision event, you can check the animpos, frame number, and animindex, animation. So if you want the actor to change color when colliding with the ground, on the 4th frame of any animation, the code would look like this.
Player -> Physical Response (repeat enabled) -> Script Editor
- Code: Select all
if(animpos==3)
{
r=0;
}
If you didn't know, frame count starts at 0, and goes up. Also animindex is the number equivalent of the current animation. You can see the order, by looking at the existing animations, it is the order they come in.