Timing in 2D?

BlitzPlus Forums/BlitzPlus Beginners Area/Timing in 2D?

Anatoly(Posted 2005) [#1]
Hi! I'm making a 2d adventure game. I have some important animations and sound sync in it. Will it be an issue for other computers if I just use "delay" or I have to go through all this millisecond/timer stuff?


Michel V.(Posted 2005) [#2]
Hello,

Öhm. Millisecs is right. Delay stop the complete program. That not good! ;-)

cu


Rambo_Bill(Posted 2005) [#3]
I've found that specifying movement and animation in terms of millisecs works best. For instance: Instead of thinking my character moves a pixel every game loop, think my character movers a pixel every 500 milliseconds. if you define speed in terms of milliseconds then .002 would be his speed becuase 500*.002 = 1 . I don't use milliseconds though, I use 100=1 second.


Grey Alien(Posted 2005) [#4]
I use millisecs. Delay would not be good.


Rambo_Bill(Posted 2005) [#5]
oops, got lost in the blitzplus section, thought i was in Blitzmax... sorry.