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.

Code Snippets / Rolling Ball Code

Author
Message
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 6th Mar 2003 22:10
A lot of people seem to be having trouble with this, so here is a basic code snippet for a rolling ball on a matrix (taken from a test piece for a very old project):



Current Project: Retro Compo. Entry.
DangYankee
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: United States
Posted: 7th Mar 2003 21:31
I get an error on this line in both db and dbpro all patched to current levels.

if updatePlayerTimer 0

It's not the size of your code but how efficiently you use it!
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 7th Mar 2003 22:16
Woops! - Sorry, here is corrected:



Current Project: Retro Compo. Entry.
DangYankee
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: United States
Posted: 7th Mar 2003 22:44
No dice: It failed in both programs again
#100013:Command line out of place at line 51
Try again

It's not the size of your code but how efficiently you use it!
DangYankee
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: United States
Posted: 7th Mar 2003 22:47
It seems your having troubles getting the ball rolling on this program. pun intended.

It's not the size of your code but how efficiently you use it!
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 8th Mar 2003 00:13
Dammit! - Lets try pasting it again:



Current Project: Retro Compo. Entry.
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 8th Mar 2003 00:14
Now it pasted OK - Where is a damn working edit button when you need one?

Current Project: Retro Compo. Entry.
Kensupen
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: United States
Posted: 27th Mar 2003 09:32
These physics don't work in DBPro. For me anyways. When you turn, the ball rolls, but not at the correct angles.

-Kensupen

Login to post a reply

Server time is: 2024-04-20 07:39:54
Your offset time is: 2024-04-20 07:39:54