Timer running slow when placed in other levels

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Timer running slow when placed in other levels

Post by petri »

You could also have a timer in each level and connect them all to this script:

Code: Select all

function timerActivated(timer)
  if timer.level == party.level then
    print("tick")
  end
end
The code inside the if block is only executed by the timer which is on the same level as the party.

(those timers could be created by the script too, less manual setup)
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Timer running slow when placed in other levels

Post by Komag »

hmm, I think I see, thanks
Finished Dungeons - complete mods to play
Post Reply