Wintermute Engine is no longer actively developed.

The original sources are archived on GitHub: wintermute-engine and wmelite. The runtime is now integrated into ScummVM, which runs Wintermute games on current systems.

Pages: [1]

Author Topic: Delay in calling your methods  (Read 13583 times)

0 Members and 1 Guest are viewing this topic.

Lazov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 31
    • View Profile
Delay in calling your methods
« on: December 29, 2018, 09:42:36 PM »

Hi guys!

I noticed that the methods I created (or overridden) delay the execution of the script when I call them. What is the reason?
This is noticeable on weak smartphones.

Example:
Code: [Select]
method StartMusic(Filename, Looping, LoopStart) {
  if (this.GetMusic() != Filename) this.PlayMusic(Filename, Looping, LoopStart);
}
Logged
Pages: [1]