September 30th 2009

Where Are My Places?

Some of you have been wondering why you only see one place on your profile now, and are worried that you have lost your places.

This is not the case. The number of slots in your “Showcase” is determined by your membership level: free members get 1, Builders Club get 10, and Turbo Builders Club get 25. If your membership status changes (you upgrade, downgrade, or it expires), the number of showcase slots will change accordingly. However, due to a bug, there was a period of time where this didn’t happen. The bug was fixed last week, so showcases are now behaving the way they were originally set up to do.

In Telamon’s last post, he touched on one of our guiding principles: “Users will not lose data.” Starting Thursday morning, you will notice under your showcase a link called “Configure My Showcase.” (This is also available at http://www.roblox.com/My/Showcase.aspx if you would like to access it before then.) Clicking this link will get you a list of all your places, so if you have more places than showcase slots (as happens if your BC / TBC expires), you can choose which place goes in your showcase, and can therefore be played by others. You can change this whenever and as many times as you like. You can also find your places on you “Stuff” page by clicking the “Places” button.

Hope this explains things a little better.

RobloSam

p.s. Look for some very exciting updates coming sooner than you think!

AddThis Social Bookmark Button

September 29th 2009

ROBLOX Explores Space

We’ve got some cool new space hats for you guys today along with a bunch of other cool stuff. Check it out:

Cthulhu - The most hideous creature in the universe!

The Emerald Horned One - A glorious green helm to make all your friends and rivals jealous.

Lunar Landing Astronaut Helmet - Explore the Robloxian Universe with this hat. It’ll keep you safe from any dangers lurking out there.

>_> - Oh no you didn’t!

Straw Demon - Keep away from the fire-breathing cyclops at all costs!

Baby Fire Breathing Cyclops of Doom - Isn’t he adorable! Just make sure he doesn’t have one of his fiery hiccups while you’re feeding him.

Red Ettin - Forget wishing wells, make your wishes on Ettins. It’s cheaper.

NetHack Addict - Finally some cool emoticon glasses!

Talk about the new stuff here.

-Brighteyes

AddThis Social Bookmark Button

September 28th 2009

Advanced Scripting: Gui Tutorial 1

Hello everyone, Madrak here with the first blog post in our series on building your own GUIs using Lua.  This is a post for advanced script writers only, so don’t worry if some of this goes over your head.

In this lesson, I’ll be explaining the first steps to set up a 2D GUI, and some basics about our coordinate system.frame

 (Here’s a simple GUI dialog that consists of mostly frames and labels)

The first step to creating your GUI is to create a GuiMain and insert it into the player’s PlayerGui object.

———————————————————————–
local tool = script.Parent;
local character = script.Parent.Parent
local player = game.Players:GetPlayerFromCharacter(character)
local guiMain = Instance.new(“GuiMain”)
guiMain.Parent = player.PlayerGui

———————————————————————–

A GuiMain object is an invisible overlay that fills the entire screen.  If you add Frames or Labels and Buttons to it, they will be drawn.  But they have to be put into a GuiMain object.

So now that we’ve created out GuiMain object, we can start adding Frames to it.  A Frame is a container object, with a BackgroundColor and BorderColor, that can hold other objects (other Frames, in addition to Buttons and Labels).  It also will fire events when the mouse either enters and leaves, allowing you to script all kinds of cool stuff.  Lastly, it contains a Visible property which can be set to false if you want it (and all of its children) to stop rendering.  This is useful if you want to hide a Frame temporarily. 

———————————————————————–
–This sample code will create and position a new Frame
local mainFrame = Instance.new("Frame")
mainFrame.Position = UDim2.new(0.08, 0, 0.88, -300)
mainFrame.Size = UDim2.new(0.0, 240, 0.0, 300)
mainFrame.Parent = guiMain;
———————————————————————–

Hold up.  What are all these UDim2 objects?  Well, they are new.  UDim stands for Universal Dimension, and is a compact way to specify both relative and absolute positioning at the same time.  When laying out a GUI, it is often necessary to have some positions/sizes change when a parent container’s size changes.  Other times, you might want to have a fixed offset that is a specific number of pixels.  A UDim lets you do both at the same time.

A UDim object consists of a Scale and an OffsetScale is specified as a number between 0.0 and 1.0 that represents the percentage of your parent’s size.  Offset is specified as an integer number, either positive or negative.  The final result is the combination of the two: Scale * Parent’s Size + Offset.  With the combination of these two values, almost anything is possible.  A UDim2 is just two UDim objects, referenced by X and Y. Here is the exact definition of the UDim2.new function: UDim2.new(xScale, xOffset, yScale, yOffset)

Now I’ll run through a few examples of using UDim2’s to make Gui objects stick to various parts of the screen.  Remember, Position is defined as the top left corner of the Frame.

———————————————————————–
–A 50×50 frame 5 pixels from the top, 10 pixels from the left mainFrame.Position = UDim2.new(0.00, 10, 0.0, 5)
mainFrame.Size = UDim2.new(0.0, 50, 0.0, 50)

–A frame that is half the size of the main screen, in the center
mainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
mainFrame.Size = UDim2.new(0.5, 0, 0.5, 0)

–A 50×50 frame in the top right corner
mainFrame.Position = UDim2.new(1.0, -50, 0.0, 0)
mainFrame.Size = UDim2.new(0, 50, 0, 50)

–A frame that is 1/4 the size of the screen,
–in the bottom right corner
–(For position I took the corner’s position (1.0) – the
– size (0.25) to get the position (0.75))
mainFrame.Position = UDim2.new(0.75, 0, 0.75, 0)
mainFrame.Size = UDim2.new(0.25, 0, 0.25, 0)

———————————————————————–

So that’s what a UDim2 object is all about, and how our relative positioning works.  Take a look at my sample PaintBrush tool, hopefully it makes a bit more sense now.

One last tip:  If you’d like to try playing around with Positions and Sizes, open up a level in edit mode and drop a GuiMain (and some Frames)  into the StarterGui. Start playing with the numbers to get a feel for how it changes, and try resizing Roblox to see how using Scales changes your GUI.  Note that StarterGui has a ShowDevelopmentGui flag that you can use to hide it while you are working on your level.  Make sure its checked or nothing will show up.

If you’d like to discuss this blog post, please visit this thread.

Next time: Buttons

–Madrak

AddThis Social Bookmark Button

September 28th 2009

Building with Friends

Today we’ve enabled a new feature that we’re testing out called Building with Friends.  Group owners now have the ability to create a building place for their group.

BWF

What makes Building with Friends special?

  • Group Building Place
    • Group owners can decide who can build in their group’s place: admins only or all members.
    • Group owners can decide who can visit their place: group members only, or all users.
  • Special Building Tools designed for multiplayer
    • We’ve introduced a new set of building tools that will only work at a short distance. This makes sure that you can’t delete things from across the map
    • As time goes on, we’ll be improving these tools
  • Insert
    • You can now insert objects in multiplayer.  However for security reasons, we currently remove most Scripts from them, so some items may not work. 
    • We’re working on a solution to make this better
  • AutoSave
    • While lots of people can “play” in a group place, there is only one server that allows building.  This is because it saves automatically over time. You may notice a slight pause in gameplay when the save happens, and you will be notified with a message on your screen.
    • Group Owners can rollback a place to a previous revision (or even reset it)

Now we know things aren’t perfect, but we wanted to get it out there so people can start playing with it to give us feedback.

This feature is also part of our BCBeta program.  BCBeta features are available to Builders Club Members only.  We hope you enjoy the feature, and want to assure everyone we’re actively working to improve it.

Go here to talk about Building with Friends in our Forum.

-Madrak and RobloTim

AddThis Social Bookmark Button

September 26th 2009

The Arrow Flew but None Could Tell

We’ve got a lot cool new items for you this weekend.

Crossbow - Our coolest piece of gear yet? This reporter says yes!

William Tell - William Tell was cool because he shot an apple off his son’s head, but he didn’t make a big deal about it.

Apple - Balancing an apple on your head is more difficult than you might think.

RBX Skater - He’s Xtreme to the Max!

Big Foot - He might look scary, but he’s a cool guy underneath it all.

Yeti - He’s not a cool guy underneath it all. He’s scary.

Melon Head - Warning: Melon will not protect head in any situation.

Cake - Super delicious organic chocolate cake with strawberry butter cream frosting.

The rest of the items will be for sale on Sunday and you can talk about them here.

-Brighteyes

AddThis Social Bookmark Button

Next Page »