Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

phaser place on ellipse

 preload ()
    {
        this.load.image('ball', 'assets/sprites/shinyball.png');
    }

    create ()
    {
        this.ellipse = new Phaser.Geom.Ellipse(400, 300, 200, 500);
        this.group = this.add.group({ key: 'ball', frameQuantity: 48 });
        Phaser.Actions.PlaceOnEllipse(this.group.getChildren(), this.ellipse);

        this.tweens.add({
            targets: this.ellipse,
            width: 700,
            height: 100,
            delay: 1000,
            duration: 2000,
            ease: 'Sine.easeInOut',
            repeat: -1,
            yoyo: true
        });
    }

    update ()
    {
        Phaser.Actions.PlaceOnEllipse(this.group.getChildren(), this.ellipse);
    }
Comment

PREVIOUS NEXT
Code Example
Javascript :: phaser place on rectangle 
Javascript :: phaser random rectangle 
Javascript :: phaser set x y 
Javascript :: phaser animation get progress 
Javascript :: phaser animation from json 
Javascript :: phaser play animation after delay 
Javascript :: regular expression a-z and 0-9 
Javascript :: mui adding eye toggle at password field 
Javascript :: toast waning 
Javascript :: scan token deploy js 
Javascript :: check letter case 
Javascript :: Count the number of child records on the each parent object 
Javascript :: show a variable value in an html webpage using dom javascript 
Javascript :: the document has mutated since the result was returned 
Javascript :: express-js 
Javascript :: javascript prompts user to input 
Javascript :: add line break in innerhtml 
Javascript :: e.target.value with number 
Javascript :: angular 9 features 
Javascript :: destructuring in javascript 
Javascript :: multer 
Javascript :: how to make a delete button in javascript 
Javascript :: mongoose update array push multiple 
Javascript :: chart.js 
Javascript :: js get array object from local storage 
Javascript :: running webpack application on production server 
Javascript :: material ui table row height 
Javascript :: know when recyclerview is on the last item 
Javascript :: difference between dom and react dom 
Javascript :: Javascript: 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =