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

PixelPAD 2D - game

game.variable

Example
Description
variables created in the game script are globally accessible in all other objects.
Parameters
game.variable
Accesses the variable of the game room.

Return
The variable in the game script

game

The Game Script is a special type of room that always persists, and is always running, even if you switch to a different room in your game.
PixelPAD
About Us
Discord
Arm Build 3.0.235
Resources
Documentation
EULA
Privacy Policy
Contact Us
hello@pixelpad.io
© 2025 All Rights Reserved. PixelPAD.io

Login

Save your project by logging in or signing up.
USERNAME OR EMAIL ADDRESS
PASSWORD
Forgot my Password?
Don't have an account?

Sign Up

Save your project by logging in or signing up.
EMAIL ADDRESS
PASSWORD
CONFIRM PASSWORD
Already have an account? Log in

Sign Up as Teacher

Create classrooms, and monitor your students.
SCHOOL NAME
EMAIL ADDRESS
PASSWORD
CONFIRM PASSWORD
Already have an account? Log in