# Animation Layer​s \(BaseAnimatingOverlay\)

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/BaseAnimatingOverlay
- **Çeviri tarihi:** 2025-09-08

`BaseAnimatingOverlay` tabanlı entity'ler animasyonları katmanlayabilir.

[NextBot](https://gmod.tr/wiki/NextBot)'lar ve [Player](https://gmod.tr/wiki/Player)'lar `BaseAnimatingOverlay` entity'leridir.

Yalnızca `anim` tipindeki [Scripted Entity](https://gmod.tr/wiki/Scripted_Entities)'ler `BaseAnimatingOverlay`'dir.

> **NOT:** [NextBot](https://gmod.tr/wiki/NextBot)'lar üzerinde jestleri oynatmak/yeni katmanlar oluşturmak, [NEXTBOT:BehaveUpdate](https://gmod.tr/wiki/NEXTBOT:BehaveUpdate) hook'u içinde yapılmadığı sürece doğru çalışmayabilir.

Aşağıdaki fonksiyonlar yalnızca **BaseAnimatingOverlay** entity'lerinde kullanılabilir:

- Katman oluşturma fonksiyonları

  - [Entity:AddGesture](https://gmod.tr/wiki/Entity:AddGesture)
  - [Entity:AddGestureSequence](https://gmod.tr/wiki/Entity:AddGestureSequence)
  - [Entity:AddLayeredSequence](https://gmod.tr/wiki/Entity:AddLayeredSequence)
- Katman düzenleme fonksiyonları

  - [Entity:IsValidLayer](https://gmod.tr/wiki/Entity:IsValidLayer)
  - [Entity:SetLayerDuration](https://gmod.tr/wiki/Entity:SetLayerDuration)
  - [Entity:GetLayerDuration](https://gmod.tr/wiki/Entity:GetLayerDuration)
  - [Entity:SetLayerCycle](https://gmod.tr/wiki/Entity:SetLayerCycle)
  - [Entity:GetLayerCycle](https://gmod.tr/wiki/Entity:GetLayerCycle)
  - [Entity:SetLayerPlaybackRate](https://gmod.tr/wiki/Entity:SetLayerPlaybackRate)
  - [Entity:SetLayerWeight](https://gmod.tr/wiki/Entity:SetLayerWeight)
  - [Entity:GetLayerWeight](https://gmod.tr/wiki/Entity:GetLayerWeight)
  - [Entity:SetLayerBlendIn](https://gmod.tr/wiki/Entity:SetLayerBlendIn)
  - [Entity:SetLayerBlendOut](https://gmod.tr/wiki/Entity:SetLayerBlendOut)
  - [Entity:SetLayerLooping](https://gmod.tr/wiki/Entity:SetLayerLooping)
  - [Entity:SetLayerAutokill](https://gmod.tr/wiki/Entity:SetLayerAutokill)
- Diğer fonksiyonlar

  - [Entity:FindGestureLayer](https://gmod.tr/wiki/Entity:FindGestureLayer)
  - [Entity:FindGestureSequenceLayer](https://gmod.tr/wiki/Entity:FindGestureSequenceLayer)
  - [Entity:IsPlayingGesture](https://gmod.tr/wiki/Entity:IsPlayingGesture)
  - [Entity:RestartGesture](https://gmod.tr/wiki/Entity:RestartGesture)
  - [Entity:RemoveGesture](https://gmod.tr/wiki/Entity:RemoveGesture)
  - [Entity:RemoveAllGestures](https://gmod.tr/wiki/Entity:RemoveAllGestures)
  - [Entity:RemoveLayer](https://gmod.tr/wiki/Entity:RemoveLayer)

### Örnek

`anim` tipindeki bir SENT üzerinde katmanların örnek kullanımı.

```lua
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )

ENT.PrintName = "Example Animated Overlay"
ENT.AutomaticFrameAdvance = true

function ENT:Initialize()

	if ( SERVER ) then

		-- Temel kurulum - gösterim için devrilmemesi amacıyla animasyonlara ve fizik moduna sahip bir model
		self:SetModel( "models/alyx.mdl" )
		self:PhysicsInit( SOLID_OBB )

		self:ResetSequence( "walk_all" ) -- Temel sekans, yürüme
		self:SetPoseParameter( "move_yaw", 90 ) -- Temel sekansın nasıl göründüğünü etkiler

		-- Temel animasyonun üzerine bindirilmiş sekans, kafayı hareket ettirir
		-- sondaki false, animasyonun bir kez oynadıktan sonra sonlanmamasını sağlar.
		self.LayerID = self:AddGestureSequence( self:LookupSequence( "a_bg_lookupright" ), false )
		self:SetLayerLooping( self.LayerID, true ) -- Katmanı döngüye al

	end

end

function ENT:Think()
	if ( SERVER ) then
		-- Katmanlarla ilgili herhangi bir mantığı burada yapın, oynatın, durdurun, vb.

		-- Animasyonun akıcı olduğundan emin olun
		self:NextThink( CurTime() )
		return true
	end
end
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/BaseAnimatingOverlay
