I am trying to make my own super mario galaxy engine
(similar to this one: http://www.create-games.com/download.asp?id=7011 ).

I'm using the PMO and I used a very simple platform movement.
I'm changing the gravity using this formula:

Always: [color:#666666]Set Counter "YGrav" to[/color] [color:#009900]Sin(360-Direction_( "Player" ))*50[/color]
Always: [color:#666666]Set Counter "XGrav" to[/color] [color:#009900]Cos(360-Direction_( "Player" ))*50[/color]

[color:#CC0000]
Direction_( "Player" )[/color] is an alterable value in the player object. I'm using the Advanced Direction Object to find the direction between the "Gravity well" (The gravity in which the player should be 'sucked into') and the actual player.

And last but not least I have another event that goes like this:

Always: [color:#666666](PMO) Set Gravity to[/color] [color:#009900]value( "YGrav" )[/color]

So what's my problem? Well everything works fine but I cannot set the X gravity.

Read this post: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=149291#Post1492 91

I received a few replies and someone PM'd me saying I should set the "(PMO) Additional X velocity" to the XGrav counter. I did it but the engine isn't looking as I wanted it to.

Firstly, when the player is underneath the circle it can't move properly and if you remove the backdrop and leave the "Gravity Well" then it just moves up and down and slowly moves towards it...it doesn't look like it's being 'sucked into it'.

[color:#3333FF]Here is the source file: [/color] http://www.mediafire.com/?dy0of13m22w

Thanks in advance!