Creating simple gravity - in BMax.
BlitzMax Forums/BlitzMax Beginners Area/Creating simple gravity - in BMax.
| ||
For those wondering of how to create simple gravity for objects in BMax, please see here: www.blitzbasic.com/codearcs/codearcs.php?code=1709 Simple - almost too simple. IPete2. |
| ||
Yup, if you know things are 2D, you just add or multiply your y movement `adder` by a gravity value then add the total to the y coords. |
| ||
cool Ipete2 here is one with some X added: |
| ||
Great stuff bill, thanks for the additions... IPete2. |
| ||
no problem. this kind of stuff is fun. I'll try some other stuff now... any ideas? |
| ||
this one appears a litle more elastic: |
| ||
Ipete2: First code archive entry hey? Good to see you are getting to grips with BMax. |
| ||
Well I guess the next thing to do is make it available to any object with a single call - using types... Thanks Jake, Yeah I was interested n the Physics thread which seems to have died now... And this is really just to highlight that you don't need complex physics, jusyt "as good as" will do. IPete2. |