# Carousel Help

**URL:** https://forum.kirupa.com/t/carousel-help/295231
**Category:** Uncategorized
**Created:** [August 26, 2009, 11:42pm UTC](https://forum.kirupa.com/t/carousel-help/295231 "2009-08-26T23:42:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)
#### Post date: [August 26, 2009, 11:42pm UTC](https://forum.kirupa.com/t/carousel-help/295231/1 "2009-08-26T23:42:12Z")

</div>

Hey Gang,

I’ve just completed the following tutorial: [http://gotoandlearn.com/play?id=92](http://gotoandlearn.com/play?id=92)

I think it’s great, but I’m having trouble with modifying it.

I want to get rid of the following line:

```auto
s.rotationY = 360 / _sprites.length * -i; // I'm using an array of sprites that I've created here instead of reading in images from XML, s is the current sprite that I am working with in a loop...

```

so that all my sprites are always facing me head on. Simply commenting out the line does this until I click one of the sprites, and then of course when my container rotates my sprites are now at the original angle they would have been at because there’s no Y rotation associated with it.

Does anyone know the math I can use to have my sprites face directly at me properly at all times?

Thanks!
