How can i add speed by hitting space bar?

Posted By: uone

How can i add speed by hitting space bar? - 06/26/09 09:59


help please.....

I have a submarine entity that would move left to right and vice versa in a curve or arc direction, my problem is,
How can i add speed gradually until the speed limitation of submarine is met while hitting space bar faster and make the speed slower as i hit space bar gradually? also as i hit space bar the submarine will go up until it would met the clamp limitation I clamp the z coordinate for the submarine so that as the speed would go faster it would move in a curve or arc direction according to the set z coordinate limitation.


thanks
Posted By: Cowabanga

Re: How can i add speed by hitting space bar? - 06/26/09 15:44

Simply increase the "x" value more in the submarine while hitting Space. And use "clamp" to limit the speed.
© 2023 lite-C Forums