Possible to create a sprite in a sprite? #2783
-
I'm making a sort of terminal-like app, where the text comes from the bottom, goes up when a new line is outputted, etc. Now, for the actual text part, I'm using a sprite, which has a viewport the same size as itself, in the center. I have an image that works as a frame for the outside part. I am aware the viewport sprite has a function to make a frame itself, but I opted for a separate frame because I had my own design I wanted. Since the viewport sprite has to stay stationary, the text cannot be updated to move upward. So, I have to create another sprite to hold the text data. But, I need that sprite to stay within the viewport of the viewport sprite. So, what I am asking, is: is it possible to create a sprite inside of a sprite? I was thinking something like:
But that doesn't work. Or maybe I'm just over-complicating things? Perhaps there is another way to get what I want, updating the text dynamically without a sprite, I guess. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay, it seems the |
Beta Was this translation helpful? Give feedback.
Okay, it seems the
scroll()
function (of the viewport sprite) is exactly what I need! Looks like I was over-complicating things, sorry!