of     1   

xiaoxiao181
#189438535Friday, May 20, 2016 6:45 PM GMT

I can assure you all variables are accounted for. DTN is the variable that the first for loop uses to create a fake "Max Number" for the page counter later on. To make a long story short, everything works just fine except for the MouseButton1Down and MouseButton1Up functions. When your mouse left clicks a TextButton, an ImageLabel inside the TextButton (with ClipsDescendants on) moves around, allowing me to use a sprite sheet for the button animations instead of multiple assets. However, the animation only seems to work once. In order to make it works again I am required to move the mouse a tiny bit first. I don't actually have to leave the button and re-enter it but I do have to move it slightly to make the clicking animation play again. I have no clue why it's behaving that way, though. They have no special conditions, and therefore should work just fine. local DT = Book["Dual Towers"]:GetChildren() for i = 1, #DT do if DT[i].ClassName == "Frame" then DTN = DTN + 1; DT[i].Visible = false end end local LDT = Book["Dual Towers"].PageNum.Left local RDT = Book["Dual Towers"].PageNum.Right local NDT = Book["Dual Towers"].PageNum.Num DT[DTNum].Visible = true; NDT.Text = "1/" .. DTN LDT.MouseButton1Down:connect(function() if LDT.Img.Position ~= UDim2.new(0, 0, -3, 0) then LDT.Img.Position = UDim2.new(0, 0, -1, 0) end end) LDT.MouseButton1Up:connect(function() if LDT.Img.Position ~= UDim2.new(0, 0, -3, 0) then LDT.Img.Position = UDim2.new(0, 0, -2, 0) end end) LDT.MouseEnter:connect(function() if LDT.Img.Position ~= UDim2.new(0, 0, -3, 0) then LDT.Img.Position = UDim2.new(0, 0, -2, 0) end end) LDT.MouseLeave:connect(function() if LDT.Img.Position ~= UDim2.new(0, 0, -3, 0) then LDT.Img.Position = UDim2.new(0, 0, 0, 0) end end) LDT.MouseButton1Click:connect(function() if LDT.Img.Position ~= UDim2.new(0, 0, -3, 0) then if DTNum == DTN then DTNum = DTNum - 1 RDT.Img.Position = UDim2.new(-1, 0, -2, 0) for i = 1, #DT do if DT[i]:IsA("Frame") then DT[i].Visible = false end end DT[DTNum].Visible = true NDT.Text = DTNum .. "/" .. DTN elseif DTNum > 2 then DTNum = DTNum - 1 for i = 1, #DT do if DT[i]:IsA("Frame") then DT[i].Visible = false end end DT[DTNum].Visible = true NDT.Text = DTNum .. "/" .. DTN elseif DTNum == 2 then DTNum = DTNum - 1 LDT.Img.Position = UDim2.new(0, 0, -3, 0) for i = 1, #DT do if DT[i]:IsA("Frame") then DT[i].Visible = false end end DT[DTNum].Visible = true NDT.Text = DTNum .. "/" .. DTN end end end) RDT.MouseButton1Down:connect(function() if RDT.Img.Position ~= UDim2.new(-1, 0, -3, 0) then RDT.Img.Position = UDim2.new(-1, 0, -1, 0) end end) RDT.MouseButton1Up:connect(function() if RDT.Img.Position ~= UDim2.new(-1, 0, -3, 0) then RDT.Img.Position = UDim2.new(-1, 0, -2, 0) end end) RDT.MouseEnter:connect(function() if RDT.Img.Position ~= UDim2.new(-1, 0, -3, 0) then RDT.Img.Position = UDim2.new(-1, 0, -2, 0) end end) RDT.MouseLeave:connect(function() if RDT.Img.Position ~= UDim2.new(-1, 0, -3, 0) then RDT.Img.Position = UDim2.new(-1, 0, 0, 0) end end) RDT.MouseButton1Click:connect(function() if RDT.Img.Position ~= UDim2.new(-1, 0, -3, 0) then if DTNum == 1 then DTNum = DTNum + 1 LDT.Img.Position = UDim2.new(0, 0, -2, 0) for i = 1, #DT do if DT[i]:IsA("Frame") then DT[i].Visible = false end end DT[DTNum].Visible = true NDT.Text = DTNum .. "/" .. DTN elseif DTNum < (DTN-1) then DTNum = DTNum + 1 for i = 1, #DT do if DT[i]:IsA("Frame") then DT[i].Visible = false end end DT[DTNum].Visible = true NDT.Text = DTNum .. "/" .. DTN elseif DTNum == (DTN-1) then DTNum = DTNum + 1 RDT.Img.Position = UDim2.new(-1, 0, -3, 0) for i = 1, #DT do if DT[i]:IsA("Frame") then DT[i].Visible = false end end DT[DTNum].Visible = true NDT.Text = DTNum .. "/" .. DTN end end end)
xiaoxiao181
#189449175Friday, May 20, 2016 10:16 PM GMT

bump
xiaoxiao181
#189494543Saturday, May 21, 2016 5:10 PM GMT

bump
dave2011
#189495265Saturday, May 21, 2016 5:22 PM GMT

look into image rect size and image rect offset instead of clips descendants and moving the image arround
xiaoxiao181
#189500944Saturday, May 21, 2016 6:44 PM GMT

I tried those a long time ago and I'm 100% positive those properties are broken. It doesn't matter what number you enter, the image always disappears.
xiaoxiao181
#189501115Saturday, May 21, 2016 6:47 PM GMT

Besides I doubt anyone actually knows what they do anyways. The wiki has zero information on them.
dave2011
#189501183Saturday, May 21, 2016 6:48 PM GMT

they do work: https://www.roblox.com/games/403644931/WIP that loading icon is made with it
xiaoxiao181
#189502874Saturday, May 21, 2016 7:11 PM GMT

The swirling blue ring? Rotating png file. I've created a function that changed the Vector2 of that property from (0, 0) to (0, 1000) and then from (0, 0) to (1000, 0) and even then from (0, 0) to (1000, 1000) and the result was ALWAYS the same. The image always disappears regardless of what image it actually is or how big the resolution is. It's broken. I'm not going to sit here and argue with you about it. I've already proven that the property does nothing.
dave2011
#189503476Saturday, May 21, 2016 7:18 PM GMT

the loading screen with the red home icon, not the blue circle, it does work, im not going to argue wheni know it works
jdogmad2
#189504304Saturday, May 21, 2016 7:26 PM GMT

dave i still need my money
dave2011
#189504330Saturday, May 21, 2016 7:27 PM GMT

nobody wants to buy it, I told you I would pay you when someone buys it
xiaoxiao181
#189504510Saturday, May 21, 2016 7:29 PM GMT

There is no loading screen with a red home icon.
dave2011
#189504544Saturday, May 21, 2016 7:30 PM GMT

your internet must be too fast, theres a loading screen if it isnt
xiaoxiao181
#189504983Saturday, May 21, 2016 7:36 PM GMT

Probably. I managed to find a "tutorial" on youtube dealing with these properties, but it's from back in 2013 so I'm pretty sure they're still broken. I followed that video to the letter and still got the same exact results.
xiaoxiao181
#189506340Saturday, May 21, 2016 7:56 PM GMT

You seem to know what you're talking about, but I still can't get the property to do anything regardless, so it's pretty much out of the question.
xiaoxiao181
#189506917Saturday, May 21, 2016 8:05 PM GMT

Nevermind then. It seems your little push had me try again and I have indeed figured it out. It's good to know there are smarter people here than I. You have my gratitude.
dave2011
#189506955Saturday, May 21, 2016 8:06 PM GMT

np, we all need pushes sometimes
dave2011
#189506999Saturday, May 21, 2016 8:06 PM GMT

Sorry I was so unhelpful when telling you about it im not at home right now so I cant load up the place and get the source code for you
xiaoxiao181
#189508124Saturday, May 21, 2016 8:24 PM GMT

If it makes you feel any better, (weirdly enough) it doesn't fix my bug. While I did manage to get the RectOffset and Size to work, my bug still persists as the animations still are not playing properly. They're behaving exactly the same where I still have to move the mouse a tiny bit to reset whatever it is that's clogging them up.

    of     1