can you please share how you got the freelancer style ship movement? I've tried that many different ways and I always have a problem with the ship's pan rotation when tilt is at an extreme angle, and using c_rotate caused stranger problems.
use c_rotate but with use_axisr mode I use somethin like: c_rotate (me, vector(mouse_hor,mouse_vert, 0), USE_AXISR); mouse_hor and vert are =(pointer.x -((screen_size.x )/2)) and the same with Y of'course. Hope it will helpfull
Last edited by tompo; 05/30/0718:46.
Never say never.
Re: Space war - New Demo
[Re: tompo]
#131288 05/30/0720:0605/30/0720:06
hm. that looks a lot like I was doing except for the vector definition inside the c_rotate. But thanks, ill definetly try somemore to get mine working. Incidentally, where are you planning to take this project, really making a freelancer clone?
Will be nice... but it's to much work to do for one person i'm afraid For me... Freelancer is still one of the best space game ever... even if it's made by Microshit... I mean Microsoft
hmm the following is the code I used to test such a camera function ForumControls() { while(1) {
mouse_pos.x = pointer.x; mouse_pos.y = pointer.y; //updates the pointer bmap position wait(1); mouseXDist =(pointer.x -((screen_size.x )/2)); //gets distance of pointer from center screen mouseYDist =(pointer.y -((screen_size.y )/2)); c_rotate (me, vector(mouseXDist,mouseYDist, 0), USE_AXISR); //hopefully prevents stupid turning issues
} } ...and nothing happened to my ship. And yes I have everything set up properly, I just substituted this function for my old one that didnt use c_rotate. (which worked except at extreme angles of tilt)