Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  

when increasing one number, make another to decrease


hi guys :) so i was playing around and making one small & old j2me game to android just for fun :) simple 2d plane flying and as faster biplane is fleeing as lower gravity become unityl 0. so need to make when one number is increasing , another equally decrease


if (seepd = =1){

gravity scale = 0;


else if (speed == 0){

garvity scale = 1;


but i need to make it smooth coz both gravity and speed is float's. :/ i did everything but working with gravity is abit hard to me :)

 anyone could hellp me ?

Share this post

Link to post
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...