Some content could not load. We could not load files from our content delivery networks (CDN).
Your network may be blocking access. Ask your IT to allow loading from: .
Network domains required
We use these CDNs to deliver the files the site needs to run, please allow the following:
Domains to allow Used for
cdn.jsdelivr.net styles and JavaScript libraries.
cdnjs.cloudflare.com JavaScript libraries and icons.
code.jquery.com jQuery and jQuery UI.
pixelpad.io, cdn.pixelpad.io CDN of images, sounds, and application files.
cdn.datatables.net Interactive tables.
fonts.googleapis.com, fonts.gstatic.com Fonts stylesheets and font files.
s3.us-west-1.amazonaws.com, s3-us-west-1.amazonaws.com Project files stored on Amazon S3.
vmwan2cvlyzeklq4knz63qh6d40lewka.lambda-url.us-west-1.on.aws Amazon AWS Project play counters.
nexushud.org Learning assistant.
u45ivsqoja6u3sk7zaliv37zq40hpbxk.lambda-url.us-west-1.on.aws Amazon AWS AI character responses, when used.
  • KEŞFET
  • ÖĞREN
  • GIRIŞ YAP
  • Giriş
  • Oyun
  • Start ve Loop
  • Nesneler
  • Sprite'lar
  • Animasyon
  • Sesler
  • Odalar
  • Girdi
  • Çarpışma
  • Fonksiyonlar
  • Kamera
  • FPS
  • Metin
  • Grafikler
  • Filtreler
  • Çok Oyunculu
  • Yapay Zeka

PixelPAD 2D - Nesneler

new_object(name: str) -> GameObject

Örnek
Açıklama
Mevcut odada, adı verilen nesnenin yeni bir örneğini oluşturur. Sınıfı doğrudan Name() şeklinde çağırarak da örneğini oluşturabilirsin; burada Name sınıfın adıdır
Parametreler
name
Örneği oluşturulacak GameObject varlığının adı, metin (string) olarak.

Dönüş Değeri
Adı verilen GameObject varlığının yeni bir örneği.

destroy(obj: GameObject) -> GameObject

Örnek
Açıklama
Bir GameObject örneğini yok eder.
Parametreler
obj
Yok edilecek GameObject örneği

Dönüş Değeri
Dönüş değeri yok.

Nesneler

Nesneler (bazen GameObject olarak da anılır), her PixelPAD2D projesinin ana parçasıdır. Her nesne, projendeki aktif bir "şeyi" temsil eder. Odalar gibi her nesne de bir nesne betiğiyle tanımlanır. Bu betik, nesnenin nasıl göründüğünü, diğer nesnelere nasıl tepki vereceğini ve bunun gibi başka şeyleri söyler. Bir odada istediğin kadar aktif nesne olabilir, ama oda değiştirdiğinde hepsi yok edilir. Yeni bir nesne oluşturmak için new_object fonksiyonunu kullan.

Betikler

Start - Nesnenin Start sekmesi, bir GameObject örneği oluşturulduğu anda çalışan kodu içerir. Örneğin bir nesneye bir ‘Sprite’ (bilgisayar resmi) atamak.

Loop - Nesnenin Loop sekmesi, nesne aktif olduğu sürece saniyede birçok kez çalışan kodu içerir. Örneğin oyuncunun hareketini kontrol etmek.

Built-in Object Variables

x
The x position of an object. Default 0. Positive values move objects to the right.
y
The y position of an object. Default 0. Positive values moves objects upwards.
z
The z position of an object. Default 0. Positive values moves objects to the upper layer.
sprite
A sprite is a computer image. Setting the sprite value on an object will change the image of that object.
scaleX
scaleX allows you to expand/shrink the object over the X axis. This affects the width of the current sprite as well as the collision mask. 1 is the default size, 0.5 is half, 2 is double.
scaleY
scaleY allows you to expand/shrink the object over the Y axis. This affects the height of the current sprite as well as the collision mask. 1 is the default size, 0.5 is half, 2 is double.
skewX
skewX rotates the object around the X axis in degrees.
skewY
skewY rotates the object around the Y axis in degrees.
angle
Angle determines the rotation the object takes in degrees. A positive angle turns it counter-clockwise.
visible
visible (boolean) determines if object is visible.
alpha
alpha (float) determines the opacity of the object. 0 is invisible, 1 is fully visible. 0.5 is half opacity.
persistent
persistent (boolean) determines if the object persists between rooms. Default is False. If set to False, objects will be destroyed when changing rooms. If set to True, objects will not be destroyed when changing rooms.
PixelPAD
Türkçe
English Deutsch Español Français Português 日本語 简体中文 繁體中文 Türkçe 한국어
Discord
Arm Sürümü 3.0.1096
Kaynaklar
Belgeler
EULA
Gizlilik Politikası
Bize Ulaş
hello@pixelpad.io
© 2026 Tüm hakları saklıdır.
PixelPAD.io
Logo

Tekrar Hoş Geldin!

Üretmeye devam etmek için giriş yap

Giriş yaparak ya da kayıt olarak projeni kaydet.
Şifreni mi unuttun?

Hesabın yok mu?

Logo

Hesabını Oluştur

PixelPad'de binlerce üreticiye katıl

Giriş yaparak ya da kayıt olarak projeni kaydet.
Gizlilik yasaları, hesap oluşturmadan önce yaşını doğrulamanı gerektiriyor.

Zaten hesabın var mı? Giriş yap

Logo

Create your account

Password must:
Be at least 8 characters
Include 1 alphabetical character
Include 1 number or special character
By signing up, you agree to PixelPAD's Terms of Service and Gizlilik Politikası.

Zaten hesabın var mı? Giriş yap