The Daily Click ::. Forums ::. Klik Coding Help ::. Rotation Question
 

Post Reply  Post Oekaki 
 

Posted By Message

RenatoDep

The Ion Adventurer

Registered
  22/03/2003
Points
  804

KlikCast Star
15th September, 2006 at 19:32:25 -

ok, so I am struggling with having my character rotate 360 smoothly. I have the swimming engine and all that done. But I want so if you press up+right and he's in right direction, that he rotates smoothly to upright position. Any suggestions?

I tried playing with direction calculator and advanced direction but I can't seem to get to work. Any help is great appreciated. Oh and this is for a platformer.

Thanks in Advance,

Newt

 
http://www.galaxiachronicles.com
http://www.eivix.com

Reno



Registered
  11/01/2005
Points
  906
15th September, 2006 at 22:38:35 -

hmmmm.... Let me sleep on it. Be back tomorrow

 
Reborn Again

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
16th September, 2006 at 03:45:18 -

MMF1.5 or MMF2?

 
n/a

Reno



Registered
  11/01/2005
Points
  906
16th September, 2006 at 08:21:16 -

Ya. MMF2 has a auto rotation for when you are running the game ^^. (quiet nice actually)

Oh and set the hotspot and action point to the center of the object too.

 
Reborn Again

RenatoDep

The Ion Adventurer

Registered
  22/03/2003
Points
  804

KlikCast Star
16th September, 2006 at 13:02:22 -

oh, MMF2

 
http://www.galaxiachronicles.com
http://www.eivix.com

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
18th September, 2006 at 08:33:11 -

Have a 'current direction' variable and an 'intended direction' variable. Always set the direction to that of 'current direction' but have the player's input act only on 'intended direction'. When 'current' and 'intended' are different, add or subtract from 'current' slowly.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click