Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(10 edits)

Hello! Thank you so much for the tool. I’ve been fiddling around to use this in our music room, and I was wondering if there was a way to make the animation reset when I click between two different song names that require the marquee. In the gif above, when switching between “I’ve Seen Something I Shouldn’t Have//Sign”​ and “I’ve Seen Something I Shouldn’t Have//Noir”​, the position in the marquee is saved between the two, which makes the song title harder to read when it’s first clicked on. I noticed this animation resets when clicking on a shorter name that doesn’t require marquee and then the longer name, and that’s the ideal behavior we’d like for switching between any songs.

Thank you!

marquee:
    xsize 800 ysize 60
    animation marquee_pan(30.0)
    always_animate False
    text "{font=gui/fonts/EBGaramond-Medium.ttf}[song_name]{/font}":
    layout 'nobreak'
transform marquee_pan(t, delay=0.5):
    xpan 0 subpixel True
    pause delay
    linear t xpan 360
    repeat
(+1)

No problem! The solution here is actually to just set it to text song_name as opposed to text "[song_name]" (and you can add the font as a property i.e. text song_name font "gui/fonts/EBGaramond-Medium.ttf"), since that will mean that the "child" is different when the text updates (vs when it's just text "[song_name]", although the substitution means that song_name is changing, to the marquee, it's still the same object). Hope that does what you want!

Thank you so much! This worked perfectly!!