PatrickP

Members
  • Content Count

    4
  • Joined

  • Last visited


Reputation Activity

  1. Like
    PatrickP got a reaction from lemmikens in Unsure if I'm using update() right and potential scoping issues   
    Change updateStart in both create and update to.
     
    this.updateStart
    You can also remove updateStart from the update argument.
     
    Doing this.variable will declare a variable that can be used in any of the functions for that scene.
     
  2. Like
    PatrickP got a reaction from Befive.Info in How can I change the image of a sprite during update function?   
    Try
    heart1.setTexture(key [, frame])
     
    I got that from the API here
    https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Sprite.html
     
    I am new to phaser myself, I find the API very helpful.
     
  3. Like
    PatrickP got a reaction from samme in How can I change the image of a sprite during update function?   
    Try
    heart1.setTexture(key [, frame])
     
    I got that from the API here
    https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Sprite.html
     
    I am new to phaser myself, I find the API very helpful.