? gravity (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Migrating to a new website for SmileBASIC 4

gravity

  • #1 ✎ 169 PixelStudio Hello I'm trying to implement gravity into my movement loop, any help on how this could be done? I know it involves the Y axis but I'm not too sure how to put this in. Posted
  • #2 ✎ 129 jamieyello First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies Y velocity = Y velocity - 1 :P Posted
  • #3 ✎ 169 PixelStudio That's all? Posted
  • #4 ✎ 169 PixelStudio It seems too easy Xp Posted
  • #5 ✎ 129 jamieyello First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies Yeah then flip it to negative when it hits the ground if you want it to bounce. ( *-0.9 to account for energy lost, nothing bounces forever) If you don't want bounce just reset it to 0 when it touches ground. You can add terminal velocity (air friction) by multiplying it by a number less than one but more than 0. Posted Edited by jamieyello
  • #6 ✎ 169 PixelStudio Thanks :D Posted