Index · Preferences · Help
Teka Co Announcements · Teka Co. General · Teka Co. Contests · Teka Co Rankings · Teka Co. Tutorials
Forum Search:

[Advanced Search]

[Messages in this Thread] [Return to Teka Co. Tutorials]

Author:Kingmasherr (Consigliere) [Moderator] [Posts]
Date:9/13/09 4:32 pm
Topic:Version 1.1 : Density and Opacity
Post ID:172
Density and Opacity have simple meanings.

Density, if set to 1 means you cannot walk over it. If set to zero, it simply does the opposite.

Opacity, if set to 1 then you cannot see through it. The same rule as Density, if it is set to zero it does the opposite which means you can see through it.

Let's give some examples.

turf/Basic_Turfs
icon='Turfs.dmi'//Previous Code
    Floor//Previous Code
        icon_state="Floor"//Previous Code
        Density=0
    Wall//Previous Code
        icon_state="Wall"//Previous Code
        Opacity=1

Now you can walk over the floor(Which you could have done in the first place as Density is default set to 0)

For the wall you cannot see through it because it is set to 1.(The default setting for a turfs Opacity is 0)


That is all for this session, go to Version 1.2 : Login Process for the next tutorial.

Messages in this Thread:

  Version 1.1 : Density and Opacity Kingmasherr (9/13/09 4:32 pm)