Hi again! I got a little confused with your code, although it is clearly more efficient than mine.
What I need to do is something like this:
Once a “ball” collides with an object (let’s say a bar), a red cross should appear for one second, fading out until it “dissapear” (indication of a mistake).
I have several “balls” that will collide with this “bar”, and every time this happens, the object “red cross” should appear and fade out in one second.
The only way I found to solve this was using a “local object redCross” inside the function.
This works perfectly, but once I collide the “right ball” with the “bar”, I should change the scene and return to the previous one.
Once I see the previous one, the object “red cross” magically appears and disappear again.
I guess this is because of the fact that my “red cross” is not added to the scene, cause it’s a local variable in a function, right?
I tried adding the “function that contains the red cross local object” in the scene, but it gives me an error, and/or I couldn’t know how to do it.
Perhaps now it’s more clear what I need.
Thanks again!!