Back to the Vavoom Forum Archives


Forum

Tick function

Sat, 29 Jul 2006 09:16:12

Crimson Wizard

There's Tick functions in Actor and Window classes. Can I make similar or use something instead in other custom class (derived directly from Object)?
Sat, 29 Jul 2006 12:49:23

Janis Legzdinsh

Yes, but you'll have to call it yourself.
Sat, 29 Jul 2006 13:43:51

Crimson Wizard

Hmm thats very interesting, Tick function is firstly declared in Thinker class. Aren't there any restrictions of making custom class Thinker's child? Maybe I simply derive it from Thinker. What time units deltaTime uses?
Sun, 30 Jul 2006 16:56:06

Janis Legzdinsh

The only limitation of a thinker is that it must belong to a level. It uses seconds.
Sun, 30 Jul 2006 17:31:09

Crimson Wizard

And how may I make it belong to Level? I know only that thinker is created using NewSpecialThinker().
Mon, 31 Jul 2006 17:39:39

Firebrand

I think that once you create the thinker in the current map it belongs to it, but I could be wrong.

Back to the Vavoom Forum Archives