Page 1 of 1

Transitioning between movie sprites

Posted: Sat Apr 13, 2024 10:07 pm
by Rubedo
I've got a bit of a weird request for a game I'm currently creating. What I'm trying to do is have a movie sprite play on loop (idle.webm), then when hovered over, a transition movie plays once (idletoreact.webm) before playing another movie on loop (react.webm). Then when unhovered, a second transition movie plays (reacttoidle.webm) before going back to the original idle looped movie (idle.webm). Basically, I want the movie sprite to 'react' to being hovered over and then go back to what they were doing once unhovered. Also, when hovered, the sprite needs to be clickable (so as to engage conversation).

As an example, imagine a girl is sleeping on a bed. When you hover over her, she rolls over with her eyes open (because you've woken her up by hovering over her). Then if you unhover, she rolls back over and goes back to sleep.

I believe the play_callback command should be able to handle this because it has provisions for transitioning between different movies, but it's difficult to find any real world examples of this being used.