Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Rolling Ball

Author
Message
Jman
18
Years of Service
User Offline
Joined: 25th Apr 2006
Location:
Posted: 26th Apr 2006 07:54
I finally was able to create a.. well.. semi working game in which a ball kinda slides around... its not very elegant, but here it is:



I seem to recall that to make a ball have the appearance that its rolling, it requires some kinda of formula between the radius of the ball and the velocity of it, but I'm stumped. If anyone could help me out, it would be amazing
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 26th Apr 2006 15:40 Edited at: 26th Apr 2006 15:42
Does that code work on your computer???? Because it doesent work on mine. I must do it lok this
to work.

EDIT:

I had to move the "#" from the beginning of the variables to the behind. I thought you couldnt do it in the way you do. However, I use DarkBASIC Pro, but I dont know if thats why.
Jman
18
Years of Service
User Offline
Joined: 25th Apr 2006
Location:
Posted: 27th Apr 2006 00:46
Ya i use DB classic, so idk, thats strange... huh, but anyways, all I want the ball to do is look like its rolling. Anyone got any ideas??
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Apr 2006 01:52
Just knocked this together for you if it's of any use...

http://www.computechtenerife.com/bouncingball.zip

Use W key to roll the ball, steer with the mouse and press the left mouse button to make the ball jump/bounce.

TDK_Man

Jman
18
Years of Service
User Offline
Joined: 25th Apr 2006
Location:
Posted: 27th Apr 2006 04:20
omg... *bows down* thank you so much, I've learned more from this program than my entire db knowledge prior. Thankyou^infinity



- Jman
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Apr 2006 20:06

Login to post a reply

Server time is: 2024-11-26 21:36:40
Your offset time is: 2024-11-26 21:36:40