Page 2 of 2

Re: how do u make level completed screen

PostPosted: Sun Sep 16, 2007 5:11 pm
by Troodon
You're welcome Kalladdolf! :)
Also if your xvelocity is 5 and your yvelocity is 2, then your directional_velocity is about 5,4. The sharp result can be count with pythagoras formula x^2+y^2=d^2 where d is directional velocity.

Re: how do u make level completed screen

PostPosted: Sun Sep 16, 2007 7:19 pm
by Kalladdolf
Just one more thing: how do I mark the collision points?
Y'know, I want to write in the script: "when the bike hits the floor with the bottom of the first wheel and the other is still in the air, turn the bike to the normal position and get the other wheel down, to!"
Well, I know how to turn the car (with animpos) but the first thing confuses me :?

Re: how do u make level completed screen

PostPosted: Mon Sep 17, 2007 12:20 pm
by Troodon
Interesting question. I've never made that but I've tought about it sometimes. I would try coding "search and try" system calibrated to animpos/frame.
That would perhaps be low collision detection but still working. Make a code that tries "can this tire be in this position without colliding" if yes -> change x and y velocity to match the bike position.
That's the idea, I haven't been able to make working code yet :mrgreen:

Re: how do u make level completed screen

PostPosted: Mon Sep 17, 2007 4:01 pm
by Kalladdolf
Your so helpful tekdino, I give u 1 point :D

Re: how do u make level completed screen

PostPosted: Tue Sep 18, 2007 5:38 pm
by Troodon
Thanks! :D