how to change color of sprite randomly when a player press?

how to change color of sprite randomly when a player press “play” botton? :neutral_face: :neutral_face: :neutral_face:

Create the conditions (cursor on button + left mouse up) and add a “Global Color” ( under “Sprite”->“Effects” ) action to it.
The action expects a string of “red;green;blue” values from 0-255 each. In order to make it completely random you could set the string to:

LargeNumberToString(Random(255)) + ";" + LargeNumberToString(Random(255)) + ";" + LargeNumberToString(Random(255))