Back

CreateTexture

JS Py
Hello World

Creates a base texture for Sprites.

gfx.CreateTexture( file ) → game object: Texture

Using textures is recommended if mand sprites use the same texture and is supposed to be faster because the texture needs to be loaded only once and is then shared across the sprites.

String: path to file or folder ( “/absolute/...” or “relative/...” )