Results 1 to 3 of 3

Thread: Depth

  1. #1

    Default Depth

    would it be possible to have the depth as numbers instead of those names cause it would be better 4 those who used to do a bite of the other game creation software(like gamemaker)

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,340

    Default

    A layer can be referenced by name but also each one has an ID assigned, in the order that they appear on the layer selector dialog IIRC. (Also note that each layer has a "sort depth" setting which is separate)

    So you can use SetLayerID() to set it by number.

    It is possible to to do: myEnt:SetLayerID(myEnt:GetLayerID()-1); to move an entity 'up one layer' without needing to know its name.
    Seth A. Robinson
    Robinson Technologies

  3. #3

    Talking

    thx 4 telling me

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •