generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Creating An Intro Gui

Previous Thread :: Next Thread 
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
02 Jun 2015 11:18 AM
Hey guys,

So, I am wanting to create an intro gui for my game. But, I have some questions before I start. So I was wondering if you can help me with answering them. Here they are:

1. What is the best way to generate little (0.05, 0, 0.05, 0)'ish squares everywhere in the users screen? Remaining squares, using either RelativeXY or RelativeXY. Can I generate automatically? Or do I have to do it manually?

2. With a follow up the previous question, is there anyway for me to form a shape similiar to this: http://www.roblox.com/Power-Studios-Logo-2-Non-3D-item?id=247228540 It doesn't need to be PERFECT. Just similiar.

Any help with this would be appreciated. I'm not asking for scripts, I just need a hint to the right path.

Thanks in advanced!
Report Abuse
ganger800 is not online. ganger800
Joined: 06 Dec 2012
Total Posts: 427
02 Jun 2015 11:30 AM
1. I don't know the best, however the I think just 1 loop that does 1 to 400 or 2 loops with 1 - 20 will do the trick

2. possible yes, create a lot of small squares, I recommend to use a decal though
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
02 Jun 2015 11:32 AM
You could use a few imagelabels together to create that logo (assuming you want to animate it)

u should add filtering - devious
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
02 Jun 2015 11:36 AM
Well.

I want the multiple squares to animate (spin and go smaller) then form the logo I shown you.

For the first question, I was planning to use a for loop, but how? A for loop needs a table, and I don't have a table, else I would have done it manually.

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
02 Jun 2015 11:37 AM
for i = 1, 10 do

no table

u should add filtering - devious
Report Abuse
ganger800 is not online. ganger800
Joined: 06 Dec 2012
Total Posts: 427
02 Jun 2015 11:40 AM
I really recommend to use a table
because animating 400 or more squares (since 0.05 is still what you can see) is really inefficient and to much work without one

well make a 2d table if you want to track it more easy
X = {};
X[1] = {};
-- etc

X[1][1] = imagelabel

still use a for loop to generate this
and then color them etc :D
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
02 Jun 2015 11:52 AM
Ok, thanks @Dev.

@Ganger

After I create the squares, I'm going to insert them into the table and animate them using a for loop (paired with spawn() for it to be simultaneous). So, now, how would I try to form the logo I provided?


Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
ganger800 is not online. ganger800
Joined: 06 Dec 2012
Total Posts: 427
02 Jun 2015 11:58 AM
hmm,
I think drawing a grid with the squares will help (use paint or some paper)
and then use some loops to color them
however it won't be smooth this way

the second thing is use a image converter to get the pixels
however then you need some knowledge of how to build one,.
Report Abuse
ganger800 is not online. ganger800
Joined: 06 Dec 2012
Total Posts: 427
02 Jun 2015 12:05 PM
edit:
I think using blocks is not going to be smooth (with the first way)
maybe make decals with the separate parts of the image is something nice to do
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
02 Jun 2015 01:05 PM
That's a bit too complicated though.

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
02 Jun 2015 01:26 PM
Actually, All you guys are saying stuff that makes sense.

Here is how I would tackle it.

On pastebin, write in a header of the image like so.

width=50
height=50

Then you want to follow up with pixel data. Each pixel with be in the format RGBA (or red, green, blue, alpha).

If you don't know how to rip image data out of a picture, you can find a cool tool for you to use. It may give you #RRGGBBAA or #RRGGBB AA. Anyways. When I draw pictures I use my ow programmed tool.

Okay so when you insert the pixel data, (mine looks like {0,0,0,0};nextpixel;etc) you need to decode that into a pixel class (my pref).

local Pixel = {}
Pixel.new = function(r,g,b,a)
local this {
Red = r;
Green = g;
Blue = b;
Alpha = a;
}
return this
end
return Pixel

Using HttpService, you can use the raw text (the button towards the right side of all those links) to get the html of the page. This html is just your header and pixel data you wrote, because its the text of the published text stuff.

for x=1, width do --you can extra the width and height easily
for y=1, height do
-- Create a Pixel from the pixeldata list
local cur_pix = PixelData[x][y]
newPixel.BackgroundColor3 = Color3.new(cur_pix.Red, cur_pix.Green, cur_pix.Blue)
newPixel.BackgroundTransparency = cur_pix.Alpha
-- note you may have to do /255 depending if it is normalized.
-- And the same for alpha
end
end

Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
02 Jun 2015 01:29 PM
Oh I forgot to mention ratios on how big a pixel should be.

One square pixel = aspect ratio of window

local pixel_ratio = width/height

Say if you have 800/600 that would be 4:3. Just convert this with about the size of a good looking pixel.

Since widescreen is a thing...
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
03 Jun 2015 01:56 AM
http://www.roblox.com/games/179547506/Image-Library-Example

Check this out. I sparked an idea.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
03 Jun 2015 02:11 AM
Erm... Ok...

This is a bit complex (for an intro gui), but I'll try.
Does the place you link contain all the things you mentioned.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image