Jump to content

Help! I've got a problem


Tiaaanda
 Share

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. ?

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...