Jump to content

OlegShaygu
 Share

Recommended Posts

Hi! I'm a newborn at Pixi.JS and ask your help.

I'm trying to put 4 characters on the stage in one line. They are moving one by one (in ticker function). Stage width is 928px. The gap between characters is 800px. And I can't understand why first three characters are put at the stage right way, but the last one is above the third one. It seems like the the width is not enough. What should I do? 

Link to comment
Share on other sites

1 hour ago, ivan.popelyshev said:

Here, you forgot to add pixi js itself in "resources": https://jsfiddle.net/Hackerham/ra303eu9/11/

Thanks a lot!

1 hour ago, ivan.popelyshev said:

So, it draws palm, then dog. The result is expected, you've added them in this order.

But I wrote:

        heroMoving(0, palm, 1.5);
        heroMoving(800, cactus, 1.5);
        heroMoving(1600, robot, 1.5);
        heroMoving(2400, dog, 1.5);

and waited all hero are going one by one after 800px, but the dog and the palm are clinging together. How to separate them and put the palm after the dog? May be I should make the screen width longer? or something else? But the Application width must be 928px.

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