Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 04:25 AM |
| I'd want to make a way to move GUI text boxes, I see that there's no way of using constrains for this so I wonder if I should use either the old school position +1 style or if there's any other way, maybe I could use that? |
|
|
| Report Abuse |
|
|
doctor152
|
  |
| Joined: 30 Nov 2008 |
| Total Posts: 308 |
|
|
| 04 Feb 2017 04:34 AM |
http://wiki.roblox.com/index.php?title=UDim2
|
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 04:38 AM |
| I guess that means Position +1 method is the way to go (yes UDim2)... hooray ._. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 04 Feb 2017 04:42 AM |
| Well yeah, you move things by changing the position. |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 05:26 AM |
| Isn't there any way to make it smooth? |
|
|
| Report Abuse |
|
|
| |
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 06:23 AM |
And now to make it remove the text reverse
like an example: "taco"
first "t" gets removed then "a" then "c" and last "o" |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 06:29 AM |
| Also it'd be nice to make the GUI rotate like a loading screen |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2017 06:33 AM |
| text removing thing: local ### = 'Hello world!' for i=1, #### do ###################### end --for the other way around - >Hello world! >Hello world >Hello worl: ############################## rotating: thing = script.Parent --gui element while true do thing.Rotation = thing.Rotation + 1 thing.Rotation = thing.Rotation % 360 --keep it at 360 so it doesn't go to massive numbers game:GetService('RunService').Heartbeat:Wait() end |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2017 06:34 AM |
text removing:
local strng = 'Hello world!'
for i=1, #strng do print(strng:sub(i,#strng)) end
|
|
|
| Report Abuse |
|
|
|
| 04 Feb 2017 06:35 AM |
rotating:
thing = script.Parent --gui element while true do thing.Rotation = thing.Rotation + 1 thing.Rotation = thing.Rotation % 360 --keep it at 360 so it doesn't go to massive numbers game:GetService('RunService').Heartbeat:Wait() end
|
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 06:43 AM |
We're almost ready to go!
Now for the particles, is there any way to make particles? Or do i have to make thousands of gui boxes moving upwards, then reset their position and repeat? |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2017 06:44 AM |
^
unless theres something i don't know
|
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 06:51 AM |
| Like make sprites appear and ease in upwards towards -0.5, there isnt any way to make particles in right |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 11:23 AM |
This script is meant to make 100 textlabels, move them upwards then tp them back to the bottom, but instead theres 2 issues:
1.the tween doesnt count the time, so it goes infinetly fast for some reason... 2.the function wont work. |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 11:24 AM |
| Script: math.randomseed(tick()) local gui = script.Parent.Screen local t = 0 local r = 0 for i = 1, 100 do wait(0.2) t = t + 1 local t = Instance.new("TextLabel") r = math.random()*1 t.Parent = gui ###### # # ########## = UDim2.new(r, 0, 1.2, 0) t:TweenPosition(UDim2.new(r, 0, 0.5, 0, "Out", "Quad", 5, true)) function i(text, r) while wait(1) do text.Position = UDim2.new(r, 0, 1.2, 0) end spawn(i(t,r)) end end |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2017 11:26 AM |
| I feel like, moving so many textlabels at once would cause latency. i'd just simply delete them when they got out of view,and then continue creating new ones. |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 04 Feb 2017 11:28 AM |
| But i'd still need to fix these issues... How can i make a while wait() making infinite amount of textboxes with diffrent sizes (math.random i know) and then move them upwards (tweenposition) with a function breaking them after 5 seconds and i want the function to work and the tween to set a timer |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
| |
|