Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

change y scale phaser

function preload ()
{
    this.load.image('atari', 'assets/sprites/atari130xe.png');
}

function create ()
{
    //  setScale sets the x and y scale values (1 = no scale)
    this.add.image(100, 300, 'atari').setScale(1, 0.5);

    this.add.image(400, 300, 'atari').setScale(1, 2);
    
    var image2 = this.add.image(700, 300, 'atari');

    //  You can also set the scale via the scaleY property:
    image2.scaleY = 4.5;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: maximum product of word lengths leetcode solution 
Javascript :: Json to npy file 
Javascript :: connect phantom wallet react typescript 
Javascript :: phaser place on circles 
Javascript :: phaser random triangle 
Javascript :: phaser add frames to existing animation 
Javascript :: phaser hide animation on complete 
Javascript :: phaser show animation play through js 
Javascript :: lookbehind alternative regex 
Javascript :: how to process string calculation in gdscript 
Javascript :: npm deploy next js with tailwind 
Javascript :: Expresiones regulares para diferentes tipos de campos de formularios 
Javascript :: javascript fiori 
Javascript :: javascript change IFormFile to base64string 
Javascript :: check change from service variable angular 
Javascript :: event.target javascript 
Javascript :: javascript map foreach 
Javascript :: json validate 
Javascript :: javascript methods 
Javascript :: google places API details JS 
Javascript :: js unshift vs push 
Javascript :: Update an object as state with React hooks 
Javascript :: remove duplicates array javascript 
Javascript :: gitea 
Javascript :: convert string to a number javascript 
Javascript :: javascript css 
Javascript :: javascript after 
Javascript :: javascript save multiple images to server 
Javascript :: vars javascript 
Javascript :: js upload file size limit 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =