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.
  • EXPLORAR
  • APRENDER
  • INICIAR SESIÓN
  • Introducción
  • Juego
  • Start y Loop
  • Objetos
  • Sprites
  • Animación
  • Sonidos
  • Salas
  • Entrada
  • Colisión
  • Funciones
  • Cámara
  • FPS
  • Texto
  • Gráficos
  • Filtros
  • Multijugador
  • IA

PixelPAD 2D - Objetos

new_object(name: str) -> GameObject

Ejemplo
Descripción
Crea una nueva instancia del objeto indicado en la sala actual. También puedes instanciar la clase simplemente llamando a Name(), donde Name es el nombre de la clase
Parámetros
name
El nombre del recurso GameObject que se va a instanciar, como cadena de texto.

Devuelve
Una nueva instancia del recurso GameObject indicado.

destroy(obj: GameObject) -> GameObject

Ejemplo
Descripción
Destruye una instancia de gameObject.
Parámetros
obj
La instancia de GameObject que se va a destruir

Devuelve
Sin valor de retorno.

Objetos

Los objetos (a veces llamados GameObjects) son la parte principal de cualquier proyecto de PixelPAD2D. Cada objeto representa una "cosa" activa en tu proyecto. Al igual que las salas, cada objeto se define mediante un script de objeto, que indica qué aspecto tiene el objeto, cómo debe reaccionar ante otros objetos y cosas por el estilo. Una sala puede tener tantos objetos activos como quieras, pero al cambiar de sala se destruyen todos. Para crear un objeto nuevo, usa la función new_object.

Scripts

Start - La pestaña Start del objeto contiene código que se ejecuta de inmediato cuando se crea una instancia de GameObject. Un ejemplo es asignar un ‘Sprite’ (una imagen de computadora) a un objeto.

Loop - La pestaña Loop del objeto contiene código que se ejecuta muchas veces por segundo mientras el objeto está activo. Un ejemplo es controlar el movimiento del jugador.

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.
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
Sobre nosotros
Discord
Versión Arm 3.0.1013
Recursos
Documentación
EULA
Política de privacidad
Contáctanos
hello@pixelpad.io
Español
English Deutsch Español Français Português 日本語 简体中文 繁體中文 한국어
© 2026 Todos los derechos reservados.
PixelPAD.io
Logo

¡Hola de nuevo!

Inicia sesión para seguir creando

Guarda tu proyecto iniciando sesión o registrándote.
¿Has olvidado tu contraseña?

¿No tienes cuenta?

Logo

Crea tu cuenta

Únete a miles de creadores en PixelPad

Guarda tu proyecto iniciando sesión o registrándote.

¿Ya tienes cuenta? Iniciar sesión

Logo

Únete como docente

Dale a tus estudiantes herramientas creativas

Crea aulas y supervisa el progreso de tus estudiantes.

¿Ya tienes cuenta? Iniciar sesión