PixelPAD 2D - game

The Game Script

The Game Script is a special Class, any objects created in this script is persistent across all rooms. Objects created in the game script are also globally accessible, you can access the game script variables using the prefix game. So for example if you wanted to access the variable "score" from another class, you use the line:
game.score

Built-in Object Variables

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.
Company
Resources
Contact Us