agKing_21
(agKing_21)
May 26, 2024, 12:11pm
#1
Not sure to understand why the frame does tween the size to the left direction when I want it to tween on the right direction
Also there’s a little point that we see on the left in which it shouldn’t be visible only the info button of tutorial
Code close button :
local CloseTutorial = script.Parent
local InfoOpen = script.Parent.Parent.Parent["INFO OPEN"]
local InfoClosed = script.Parent.Parent.Parent["INFO CLOSE"]
local MainFrame = script.Parent.Parent.Parent
CloseTutorial.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.ScrollingFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
script.Parent.Parent.Parent.ScrollingFrame["1"].Visible = false
script.Parent.Parent.Parent.ScrollingFrame["1.5"].Visible = false
script.Parent.Parent.Parent.ScrollingFrame["1.2"].Visible = false
script.Parent.Parent.Parent.ScrollingFrame["1.3"].Visible = false
script.Parent.Parent.Parent.ScrollingFrame["1.4"].Visible = false
InfoOpen.Visible = true
InfoClosed.Visible = false
MainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
end)
Code open button :
local CloseTutorial = script.Parent
local InfoOpen = script.Parent.Parent.Parent["INFO OPEN"]
local InfoClosed = script.Parent.Parent.Parent["INFO CLOSE"]
local MainFrame = script.Parent.Parent.Parent
CloseTutorial.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.ScrollingFrame:TweenSize(UDim2.new(1, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
script.Parent.Parent.Parent.ScrollingFrame["1"].Visible = true
script.Parent.Parent.Parent.ScrollingFrame["1.5"].Visible = true
script.Parent.Parent.Parent.ScrollingFrame["1.2"].Visible = true
script.Parent.Parent.Parent.ScrollingFrame["1.3"].Visible = true
script.Parent.Parent.Parent.ScrollingFrame["1.4"].Visible = true
InfoOpen.Visible = false
InfoClosed.Visible = true
MainFrame:TweenSize(UDim2.new(0, 175, 0, 175), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.2)
end)
1 Like
Amritss
(EmperorOfChickens)
May 26, 2024, 12:17pm
#2
Maybe show the code for your tween so that we can try and fix it?
Edit thank you.
1 Like
Amritss
(EmperorOfChickens)
May 26, 2024, 12:18pm
#3
MainFrame:TweenSize(UDim2.new(0, 175, 0, 175), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.2)
On this line. Replicate it with this code:
MainFrame:TweenSize(UDim2.new(0, -175, 0, 175), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.2)
Tell me what happens now.
1 Like
Amritss
(EmperorOfChickens)
May 26, 2024, 12:27pm
#5
MainFrame:TweenSize(UDim2.new(0, -175, 0, -175), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.2)
How about this?
1 Like
Amritss
(EmperorOfChickens)
May 26, 2024, 2:27pm
#7
Hm, that’s confusing. Oh well change your code back to normal then. Hopefully someone smart comes here. Good luck.
1 Like
Amritss
(EmperorOfChickens)
May 26, 2024, 2:32pm
#8
One more try.
MainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
MainFrame:TweenSize(-UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
1 Like
agKing_21
(agKing_21)
May 26, 2024, 3:42pm
#9
EmperorOfChickens:
MainFrame:TweenSize(-UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
Still the same issue that remains
1 Like
Any conflicts issues regarding AnchorPoints?
2 Likes
agKing_21
(agKing_21)
May 26, 2024, 5:08pm
#11
Anchor point of the main container are at 0, 0
Try setting the container’s Anchor Point to 1, 0
What is it’s current position?
This text will be blurred
1 Like
agKing_21
(agKing_21)
May 26, 2024, 5:21pm
#15
I changed the Anchor point of main container to 1 but put it back to 0,0 it seems like we see the dots point on closing the tutorial since the info button is in the main container frame that’s why it needs to display the point to have space to fill in the info button
1 Like
I had a stroke while reading that, can you explain it better?
1 Like
agKing_21
(agKing_21)
May 26, 2024, 5:24pm
#18
I mean the dot you see while closing the tutorial from my understanding of why we are seeing it it seems like it’s because it has to display the button in which the player can click to make the tutorial visible again so the dot point indicates that there’s still element visible which otherwise I tested yesterday and if I would put the main container invisible then the close and info button would be as well so my theory is that the info button plays a role in the small dots
What do you mean by “dots”?
This text will be blurred