How to stop sprite from flipping on collision

0 favourites
  • 3 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Hi guys,

    I have sprites that bounce horizontally between 2 walls and mirror to the direction they are supposed to be facing(its a baby crawling in one direction). The problem is they also flip vertically when I use the bullet behaviour. Is there any way to prevent this. I used a pick all instances and make "not flipped" but that doesnt work.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I guess you're setting the angle, and objects rotated through 180 degrees are facing the other way but also appear flipped.

    Try:

    • not setting the object's angle, and manually using 'set mirrored' depending on its direction
    • use 'set flipped' instead of 'set not flipped' to correct the flipping!
  • Hi Ashley,

    After alot of trial and error I managed to get it working but I needed to add a wait action before performing the flip.

    I'm not sure why this is happening. I've included the capx on dropbox.

    When the capx runs initially it will show the problem with flipping only once.

    I have disabled the wait commands on the event sheet but when they are active the flipping seems to work perfectly.Baby Wall CAPX

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)