Original Post
float d = +2.0f, e = -10.0f, f; .... void myIdle() { ..... e += 0.2; } Using the above code I have made an object move upwards. How do I make the object go back down the way it came up(i dont mean wrapping)? I have tried the following but doesnt work. if (e >= 10.0f) { e = 10.0f; e -= 2.0; } Can anyone help?