ZFG Posted August 25, 2008 Report Share Posted August 25, 2008 Is it possible to make the Camera rotate when sonic is running a loop or a slope? If so, Please tell me how. Link to comment Share on other sites More sharing options...
Neon Noble TH Posted August 25, 2008 Report Share Posted August 25, 2008 Is it possible to make the Camera rotate when sonic is running a loop or a slope? If so, Please tell me how. What do you mean by 'rotate'? Like, do you want it to spin around, or what? Link to comment Share on other sites More sharing options...
VectorSatyr Posted August 25, 2008 Report Share Posted August 25, 2008 Assuming you're using a view, change view_angle to the player's angle. Link to comment Share on other sites More sharing options...
Kain Posted August 25, 2008 Report Share Posted August 25, 2008 Actually, view_angle = -player_angle. So that player_angle + view_angle = drawn angle = 0 Edit: But use this method exactly and you'll find out just how jerky angle detection is. So you'll need to apply some degree of smoothing. Link to comment Share on other sites More sharing options...
Godmaster Posted August 30, 2008 Report Share Posted August 30, 2008 Actually, view_angle = -player_angle.So that player_angle + view_angle = drawn angle = 0 That's a good solution, but I suggest a lighter camera rotation for you don't get dizzy. But, I don't know yet to make the hud don't spin with the view Link to comment Share on other sites More sharing options...
Kain Posted August 30, 2008 Report Share Posted August 30, 2008 But, I don't know yet to make the hud don't spin with the view There are numerous solutions, but the most un-intrusive would probably be this one: http://gmlscripts.com/script/draw_sprite_hud Link to comment Share on other sites More sharing options...
Recommended Posts