How would I create a text cycle?

I am currently working on a game that requires this sort of text movement, how would I do this?

Gif: Frappe Gif

1 Like

This would be a custom tween of the textlabel, or you could do a looped sprite animation(not recommended for text based things as you’d need an individual drawing for every thing. This is almost certainly the first suggestion. They are tweening (smoothly moving) two labels at the same time. And setting a limit to the frame the text label can exist in. Which cuts it off like a Clipping mask. Then they just wait for the one to reach a certain point before looping the duplicate from the right side. And so on and so forth.

2 Likes

To use this “clipping mask” would this be “Clip Descendants”?

1 Like

No no no. They are creating their own clipping mask. I mean. I’m sure clips descendants MAY fit in there somewhere but that’s not what I meant. No rather, they have one text label, but they duplicate it. Then they tween the first one to the left. It looks like the text label is passing behind either a custom designed object, or a lessened opacity (.7) object to give it that fading in and out. Once the one on the left reaches a certain point. They do the same with the duplicate. And once THAT reaches a certain point they do the same with the first one. Which is now completely off screen. They just move it back tot he start position and start tweening it to the left again.

This is a pretty difficult question. This sounds like fun to do, though!

You could create two TextLabels that are constantly playing Tweens across the screen. When they reach a certain point (if the anchor point reaches {0,0} {0,0}, perhaps) then move the TextLabel to a position just out of the frame and repeat.

For more custom effects (like how they fade out, which is a small black gradient) you can upload images and layer the text behind it so it appear it is fading out.

If you need some help with Tweening, here are some articles!

1 Like

Essentially GUIObjects can only appear inside the bounds of the frame or GUI the ya re parented to. So, for this. They just make an invisible frame. Then when the text label hits the edge you can only see that part of it which is in the frame space.

2 Likes

Well… yes. Exactly… like… like I wrote above. The links are helpful though.

Just working on this, I’ll update you when it works or doesn’t.

1 Like

I’ll be right here waiting for the update :slight_smile:

Got it working, thanks! 30chars

1 Like

Great to hear!!! I wish you luck with the remainder of your game. :smiley:

1 Like