Problem with animation of character

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.

Re: Problem with animation of character

Postby markonway » Sat Jul 25, 2020 5:28 pm

I put one more image on the right to test and work, before it was like impactjs was interpreting that the image was 4/4. I'm getting the hang of the character animation, I switched to a giant sheet with several character animations in the same image and I'm doing well. Thank you so much for everything. And if it is not too much trouble, I would like to ask one more question: Is it possible to enlarge the zoom screen? I mean, keeping the current screen resolution for example 1200x700
markonway
 
Posts: 6
Joined: Thu Jul 23, 2020 1:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Problem with animation of character

Postby hallsofvallhalla » Sun Jul 26, 2020 6:05 pm

I am not 100% sure what exactly you mean but in your main.js

Code: Select all
draw: function() {
    ig.system.context.save();
    ig.system.context.scale( 0.5, 0.5 );

    this.parent();

    ig.system.context.restore();
}


Code: Select all
ig.system.width = ig.system.realWidth / 0.5;
ig.system.height = ig.system.realHeight / 0.5;
User avatar
hallsofvallhalla
Site Admin
 
Posts: 11998
Images: 13
Joined: Wed Apr 22, 2009 6:29 pm
Location: mobile, al
Has thanked: 11 times
Been thanked: 164 times
Blog: View Blog (3)

Previous

Return to Beginner Help and Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x