Jump to content

Sprite with negative scale falls through tilemap


Recommended Posts

I read elsewhere on the forum (lessmilk post?) that a good way to horizontally flip sprites was to set the scale to a negative number.


When I do that, my sprite falls through the tilemap floor, unlike when the scale is set positive.


Here's a link:




Any ideas?

Link to comment
Share on other sites

I upgraded to 2.0.1 and now I'm seeing a different issue: https://dl.dropboxusercontent.com/u/75126/fallingscale/index.html


When the game begins the sprite flies off to the left almost immediately. Removing input controls has no effect. If I remove the call to this.sprite.scale.setTo(-2, 2) from the create function then the sprite behaves normally. When I make calls to scale.setTo in the update function everything works as expected.


It's not blocking me, but it's kinda weird.

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.

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.


  • Recently Browsing   0 members

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