# Mirroring issue

0 favourites
• 7 posts
• I have an object that spawns from the bottom and move up at a random 260 and 280 angle (which means some go randomly slightly to the left or right as they go up).

I want the object sprite to mirror if it's going slightly to the left. Trying to make that happen.

Thank you.

• So your angle range is centered on 270? So you just take the current random angle, subtract 270 and subtract that value from 270 to get the mirror angle.

That will mirror your object around 270.

• So your angle range is centered on 270? So you just take the current random angle, subtract 270 and subtract that value from 270 to get the mirror angle.

That will mirror your object around 270.

So here is the action:

https://www.dropbox.com/s/tvvxkpiueeqe0 ... 1.jpg?dl=0

if the angle of motion is between 260 and 270, i want to mirror the sprite.

I tried the math with all the Events where it checks angle. But not working how I need it.

• ## Try Construct 3

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

Construct 3 users don't see these ads
• I guess I am not clear on what you are trying to do. You want to create a 2nd sprite at the mirror angle at the same time as your first sprite?

• Well you just said your own logic:

+ System: Is between values (Obstacle.Bullet.Angle, 260, 270)

• Set Mirorred

+ Else

+ System: Is between values (Obstacle.Bullet.Angle, 270, 280)

• Set Not Mirorred

I guess something like this?

• Well you just said your own logic:

+ System: Is between values (Obstacle.Bullet.Angle, 260, 270)

- Set Mirorred

+ Else

+ System: Is between values (Obstacle.Bullet.Angle, 270, 280)

- Set Not Mirorred

I guess something like this?

I got it. It was actually

Obstacle: Is between angles 270 - (Obstacle.Bullet.AngleOfMotion - 270) and 270

• Set Mirrored

Thanks for the help.

• Nice

• 7 posts