ItemColor

From Whirled

Jump to: navigation, search

ItemColor furniture is a type of color-selectable furniture. It is currently limited to static, monochromatic furniture and is not compatible with EveryColor.

Using ItemColor Furniture

To change the color of an ItemColor Furniture piece, click on the furniture. An outer ring will open up displaying the base color:

Image:Itemcolor-vase1.png

Click on any color of the outer ring to show the inner ring and then click one of the colors on the inner ring to change the object's color:

Image:Itemcolor-vase2.png

Only an owner of a room can change the color of an object.

Creating ItemColor Furniture

The process of making ItemColor furniture is meant to be easy and consists of three tasks, assuming the Whirled SDK has been installed.


1. Download this ItemColor.as file and place it in the same folder as your furniture. This file handles adding the proper Mouse listeners, drawing and coloring the palette and updating and applying the memory.


2. Draw your furniture so that the clips that change color are in shades of gray.

Image:Itemcolor-vase_mc.png


3. Place and edit the following code on the main timeline:

new ItemColor(this, vase_mc, 50, 75)

Image:Itemcolor-code.png

The first argument (this) refers back to the file and is needed to create a FurniControl. This should not be changed.

The second argument (vase_mc) is the name of the MovieClip that will change color.

The third and fourth arguments are the x and y positions of the center of the palette circle. Adjust them as needed for your piece of furniture.

Once that is done, publish the file to a SWF and upload it to Whirled!

ItemColor Whirled

The ItemColor Whirled is here for any questions on creating ItemColor objects.

Personal tools