Script works in a computer but not in another one

Please read this post and provide information on what may be different about your two computers, otherwise no one can help you. The version of PTB, the version of the OS, the graphics driver, the screen configuration and many other things could cause differences. For timing problems, check that at least VBLSyncTest works as expected. Read what PTB returns in the command window, and follow anything it suggests…