Game Development Community

Networking phase

by H.W. Kim · in Torque Game Engine · 03/02/2008 (3:19 am) · 0 replies

I'm doing some experiments with starter.fps package.
When I added counter releated resource and script functions from starter.race into starter.fps but it only shows last 'go' bitmap image. (Yes, what as you guess, it is 3 > 2 > 1 > 'Go' images when starter.race game is started)

I opened 'console.log' and found that there are differences even it calls same script function 'startCounter()' in the same place 'onMissionLoaded()'.

All counter related script functions of 'starter.race' package are called after '*** Initial Control Object' phase but it does not in the 'starter.fps' package. Some of counter related fuctions are called before '*** Initial Control Object' phase even some functions are called within '*** Phase 3: Mission Lighting' phase' in the 'starter.fps' package.

So I guess the problem is due to the script functions are too much early called not just in time. But why? It is so wieried even it calls counter in the same place, 'onMissonLoaded' in both 'starter.race' and 'starter.fps' packages.

What's the differences between 'starter.fps' and 'starter.race' in the case?