Sign in to follow this  

change the frame of a sprite

Recommended Posts

Hi I have a spritesheet consisting of 2x images.

When my player moves over the sprite I want it to change to the other image.

I know it's probably very simple but I cannot do it.

this.load.spritesheet('stickers','assets/images/stickers01.png', 76, 96, 2);  //as you can see it has two indexes (0 & 1)

And what is the link to see all the phaser syntax? that would help

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.