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.

DarkBASIC Professional Discussion / Is my Delta timerbase right?

Author
Message
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 10th Sep 2011 00:00
Hi guys I put this code in a multilayer pong and it does some werid things for example the ball will hit the bottom of the screen and like stay there and moving right or left in velocity.

Then it finally corrects it's self. The point is my code shouldn't make the ball do that . It seems since I added this it doesn't work right it seems. Here is a example of the same delta timer I got in the code for my multilayer game.

You seen any problems with this?

here is the code


darkvee
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Sep 2011 00:37
Seems to work fine.
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 10th Sep 2011 00:53
Hi Green Gandalf thanks

So it must be lagg in my game then.

I heard the timer i'm using has inaccurate results. They said to use a fixed step so it's accurate. I have another Delta timer that suppose to be a fixed step one. Do this look right to you?





darkvee
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Sep 2011 01:12
Seems to work the same as your previous snippet.
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 10th Sep 2011 01:58
Alright thanks

darkvee

Login to post a reply

Server time is: 2026-07-10 23:32:54
Your offset time is: 2026-07-10 23:32:54