Post new topic    
Page «  1, 2
Liquid Metal King Slime
Send private message
 
 PostThu Jun 02, 2011 3:05 am
Send private message Reply with quote
Willy Elektrix wrote:
By the way, I've been meaning to ask, how exactly do the "wait" commands work, technically I mean. For instance, I find that I have to insert a lot of waits of varying lengths when I'm switching between backdrops, menus, and text boxes in a sequence. I think I have the timing perfect after much experimentation, but if I play the game on a faster or slower computer will the waits actually be of entirely different intervals? Forgive my ignorance, but how does that work?


wait(1) waits for one game tick. There are about 18.2 ticks per second. You can expect this to be the same on all computers.

The accuracy is not perfect-- for example, if you are playing music in the background and trying to use just the right amount of "wait" to have an event happen when a specific note plays in the song, you are likely to be frustrated by the small variations, especially with a long song.

However, the accuracy is good enough that for all purposes other than long songs, you don't really need to worry about the speed being wrong on other computers.

A future version is likely to allow the tick length to be changed, but that would only apply to new games, so there is no danger of your game being broken when a future version adds that feature.
Display posts from previous:
Page «  1, 2