So i want to make a text box like the one from Super Mario 64, i want to make it rotate around it’s Anchor Point when it appears. How do i do that?
Create a tween with your preferred tweeninfo and set the following as the property table:
{Rotation = 360}
and then play the tween when you want the gui to appear.
Alright, i’m gonna try that, thanks.
Oh, and when the tween ends, remember to set the Rotation back to 0, if you want play the tween again or you can just replace properties table with:
{Rotation = (TextLable.Rotation == 0) and 360 or 0}
I do that only if i want to play it again right?
Yes, but there is no issues with it even if you don’t.
It doesn’t rotate around the Anchor Point which is strange.
Here’s a video showing the animation :
You implemented it? If not, is that what you want?
I want this :
Add a frame, put its size to {1,0},{1,0} and position it to the anchor point you want and put the frames anchor point to 0.5,0.5 and then add the frame you want to make animation for and position it so that the mid point of the parent frame is at the anchor point you want for the child frame and then just make it rotate. And make sure that the parent frame transparency is 1.
(Ik its confusing so:
Rotating it makes:
as you see the child is rotated at the mid point. To change location just move the parent frame.
File.rbxm (2.0 KB)
If you still dont understand here:
Set the anchor point to {0, 0} for that effect. And then play this tween:
local tween = TweenService:Create(TEXT_LABEL, TweenInfo.new(1), {Rotation = 360, Size = SIZE))
tween:Play()
This is too complicated for me, isn’t there a simpler way?
Using maths? sure thing! and no that way is simpler. See the file I sent.