• DOCS
  • EXPLORE
  • LEARN
  • LIBRARY
  • LOGIN
  • Introduction
  • Game
  • Start-loop
  • Objects
  • Sprites
  • Animation
  • Sounds
  • Rooms
  • Input
  • Collision
  • Functions
  • Camera
  • Fps
  • Text
  • Filters
  • Multiplayer
  • Legacy

PixelPAD 2D - rooms

set_room(name: str) -> object

Example
Description
Changes the active room to name.
Parameters
name
The name of a room asset to set as the active room, as a string.

Return
A room object

get_room() -> object

Example
Description
Returns the active room object.
Parameters
None
No parameters.

Return
The currently active room object.

Rooms

In PixelPAD, rooms are where your game takes place. A room is defined by a room script, which is a Python program whose main purpose is to create and connect objects. You can think of a room as a "scene": a collection of game objects working together to present a specific scenario to the player. There can only be one room active at a time. To change which room is active, use the set_room function. Changing the active room will destroy all objects created in that room. To ensure objects are NOT destroyed, you must set the persistent property in that object to True. object.persistent = True
PixelPAD
About Us
Discord
Arm Build 3.0.478
Resources
Documentation
EULA
Privacy Policy
Contact Us
hello@pixelpad.io
© 2026 All Rights Reserved.
PixelPAD.io
Logo

Welcome Back!

Log in to continue creating

Save your project by logging in or signing up.
Forgot Password?

Don't have an account?

Logo

Create Your Account

Join thousands of creators on PixelPad

Save your project by logging in or signing up.

Already have an account? Log in

Logo

Join as an Educator

Empower your students with creative tools

Create classrooms and monitor your students' progress.

Already have an account? Log in