Change elements behind player

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Grim

Hi, I’d like to get some effect but I don’t know how to do it.

I’d like to do something like that:

if elements.x < player.x :
change color for specific element, text of element or something

So the individual elements behind the character are to change.
How do you do that?

:bust_in_silhouette: Reply From: supper_raptor

Try this

if elements.x < player.x 
	elements.modulate = Color(1.0,0,0) #red color

Your element will turn red