Login to PixelPAD
Save your project by logging in or signing up.
USERNAME OR EMAIL ADDRESS
PASSWORD
Forgot my Password?
Don't have an account?
Sign Up For PixelPAD
Save your project by logging in or signing up.
EMAIL ADDRESS
PASSWORD
CONFIRM PASSWORD
I already have an account
Sign up as a Teacher
Create classrooms, and monitor your students.
SCHOOL NAME
EMAIL ADDRESS
PASSWORD
CONFIRM PASSWORD
I already have an account
  • Introduction
  • Game
  • Start-loop
  • Objects
  • Sprites
  • Animation
  • Sounds
  • Rooms
  • Input
  • Collision
  • Functions
  • Camera
  • Fps
  • Text
  • Filters
  • Multiplayer
  • Legacy

PixelPAD 2D - text

text(text :string, x :number, y :number) -> sprite

Example
Description
Loads a sprite asset.
Parameters
text
The text you want to display.

x
The x position of the text object

y
The y position of the text object

Return
A text object

text properties

After creating the text object, you can set a number of built-in properties to have various affects. The following built-in text-properties can be used.
text.text = "hello world" sets the text to hello world
text.scaleX = 2 sets the width to 200%
text.scaleY = 2 sets the height to 200%
text.skewX = 45 sets the skewX by 45 degrees
text.skewY = 45 sets the skewY by 45 degrees
text.x = 100 sets the x position to 100
text.y = 100 sets the y position to 100
text.z = 10 sets the z position to 10
text.visible = False sets the visibility to False
text.angle = 45 sets the angle to 45 degrees
text.fontSize = 16 sets the font size to 16
text.fontFamily = "roboto" sets the font type to roboto
text.color = "#fff" sets the hex value color (white)
text.persistent = True sets the persistence to True
text.halign = "center"Sets alignment of the text horizontally. Use "right", "left", or "center" alignment
text.valign = "top"Sets alignment of the text vertically. Use "top", "middle", or "bottom" alignment
PixelPAD
About Us
Arm Build 2.8.4
Resources
Documentation
Discord
EULA
Privacy Policy
Contact Us
hello@pixelpad.io
© 2023 All Rights Reserved. PixelPAD.io
Region: us-west-1