Randomized Texture on Texturebutton

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

I have a Texturebutton which i want it to change Texture everythime it spawns

I’ve experimented a little bit, but fail very hard please help :confused:

can you show us your failing experimental code?

whiteshampoo | 2020-11-11 11:52

:bust_in_silhouette: Reply From: EmanuelOzorio

If it is part of you main game you can try this way:
Create a Sprite that will have your texture and put a TouchScreenButton to over his.
Change the texture of sprite. It will function like a button, but without the alignment features.