Constrain self.Rotation to vectorToAngle(self.Motion.Linear Velocity.X,self.Motion.Linear Velocity.Y)
Copy/Paste wont work so don't try and copy this into GS.
Make sure your image faces right but don't worry too much as you can add a -90 at the end of the code outside the brackets if you have already made the image.
utopiangames said: Constrain self.Rotation to vectorToAngle(self.Motion.Linear Velocity.X,self.Motion.Linear Velocity.Y)
Copy/Paste wont work so don't try and copy this into GS.
Make sure your image faces right but don't worry too much as you can add a -90 at the end of the code outside the brackets if you have already made the image.
utopiangames said: Send me the file i will have a look at it for you.
toyboxuk[AT]hotmail.com
Darren.
hold on! not anymore :L its just doing the opposite because my accelerometer is the opposite way around because it wasnt working, how could i fix that ?
utopiangames said: I'm sure its because your image isn't facing right (Ducks head is on right ,tail on left)....rotate it in your art package then pop it back into GS.
The code will rotate to the way it's moving so it doesn't matter how you have your tilt set up it should still work.
Comments
Copy/Paste wont work so don't try and copy this into GS.
Make sure your image faces right but don't worry too much as you can add a -90 at the end of the code outside the brackets if you have already made the image.
Darren.
its a duck in a bath :L ?
Darren.
toyboxuk[AT]hotmail.com
Darren.
The code will rotate to the way it's moving so it doesn't matter how you have your tilt set up it should still work.
Darren.
thanks darren !
Darren.
___________________________________________________________________________________________
GS Tools Website Come and see our collection of great GS Tools.
Platform Template Our most popular template with over 100 sales.
Mega Pack 31 Templates Amazing value with 32 fantastic templates.
Shoot Em Up Template Over 30 moving enemies with 0 slow down.