Back

CreateTexture

Hello World

Creates a base texture for Sprites.

gfx.CreateTexture → 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.