Tiaaanda

Help! I've got a problem

Recommended Posts

Well, I´m a noob creating games and stuff but currently I'm developing a 2D game. I've designed my principal character but the original images of it are quite big and I need to change its size to add the character to the game. The original images are like  560px x 400px and I need to reduce it to 27px x 20px. How can I do that?

I tried this but its useless

var character

create function() {

character = game.add.sprite(100, 150, "main");
character.anchor.setTo(0.5);

character.style.width = "27px";

character.style.height = "20px";

I´ll be really grateful if you could help me. 🙌

 

 

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

  • Recently Browsing   0 members

    No registered users viewing this page.