# Rotate platform with mouse position

**URL:** https://forum.kirupa.com/t/rotate-platform-with-mouse-position/215092
**Category:** programming
**Created:** [February 4, 2007, 6:20am UTC](https://forum.kirupa.com/t/rotate-platform-with-mouse-position/215092 "2007-02-04T06:20:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jbog91](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jbog91](https://forum.kirupa.com/u/jbog91)
#### Post date: [February 4, 2007, 6:20am UTC](https://forum.kirupa.com/t/rotate-platform-with-mouse-position/215092/1 "2007-02-04T06:20:47Z")

</div>

I’m trying to come up with a tutorial for this game here: [http://www.flashgame-online.com/free-games/skill/jeu-chiant.html](http://www.flashgame-online.com/free-games/skill/jeu-chiant.html)

However, I can’t seem to figure out how to rotate the platform below just based on where the mouse is on the stage. Does anyone have a tutorial or some code on this? Thanks. :cubs:
