Maintenance - We're currently working on things and you might experience some issues. Should be wrapped up soon!

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Flip a card animation
Post Flair (click to view more posts with a particular flair)
Post Body

Hello,

I have a problem with one of my scenes and I can't find a solution on the internet.

I've created a scene with a card that flips over when you click on it.

I use a “Sprite2D” to represent the map, and an “animationplayer” to manage the width of the map and the texture displayed.

For the moment, the map's start and end textures are defined in the animation, but I'd like them to be dynamic, so that I can flip any map.

How can I do this?

https://preview.redd.it/cvg42kuierod1.png?width=1572&format=png&auto=webp&s=24b4e459a5ec33367d0165c613b9dc346e7a2976

https://preview.redd.it/tcdf3gekerod1.png?width=1579&format=png&auto=webp&s=73f88af45b5b25d36ab6f681ab53abffa4c48489

here, I've defined that at 0.51s, the texture changes. Is it possible to script the card face to be different from the ace of spades?

Author
User Disabled
Account Strength
0%
Disabled 1 month ago
Account Age
6 months
Verified Email
Yes
Verified Flair
No
Total Karma
278
Link Karma
41
Comment Karma
237
Profile updated: 3 days ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 months ago