There might be a better way than this. Have the 2 platforms on top of each other. When he touches the platform ,the first one is destroyed or disappears and you can see the second one
You might can define platform as an enemy object with 0 damage and 999 health. Add damage animation to the health component, and make sure that the animation speed is 0. This way when you hit the platform with your character the damage animation shows for indefinite time...
Thank you very much, the annimation time is what I have missed because when I did it it just flashes then it go back to the initial color. Your help is much appreciated.
I have a problem with this, once the charcter touches the platform it animates but the charcter is stuck and will not move.
Instead of Enemy method trudnai said above, I think is more effective and will probably remove your stucking problem, is to add an advanced move to the object and add animation there. leave timeout 0, so it stays like that.
Thank you for your help, I tried your solution, but it does not animate. I set action to Collision. When I set the event to "on start" it does animate but I need it to animate only when the character touches it. Regards.
which bb version you are using. It does not animate on collision in older but BB 2.2.5 it works fine. I had that problem too. Update to 2.2.5 and it will work.
Do you only want to change the color when touching or when you no longer stand on it again the old color?