Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

New AntiLag Script // Solution for Script Command Problem

This is an odd script... it fixes the lag in some places, but creates lag in places there was no lag before... it seems to happen in places involving animations.
 
mh.. it should help if you play a bit with the settings.. ;)

if this does not help you will unfortunately have to wait two weeks because I go on holiday today.. (I will have internet there but nothing else.. ^^)
 
I'm wondering, fotz. I'm using a view range script for monsters on the field, and the event of each monster must have a call script for view range on parallel process. The field is large, and therefor there are many monsters, and therefor the call scripts of each monster being called in parallel process is causing considerable lag.

I'm wondering if there is a way to make it so that certain parallel process events only process when they are on screen.
I'm trying to make it so that event actions automatically happen when the event is on screen, and only when they are on screen.

Edit: I've found a work around by using custom movement to activate a switch, which activates the monsters, which helps somewhat, but I would still like to know if this is possible.
 

Etern

Member

I have a problem with the script, whenever, I start the game, a message pops up and tells me that a "NoMethodError" occured in line 44, namely a "undefined method 'state' for SDK:Module" . Any solution for this?
Btw, I am using "SDK Part I II III IV" .
 
yeah.. the script is only compatible with the old SDK.. but I will solve this problem soon ;)

edit: just tried it.. the script should already be compatible with SDK2.3 and MCLAB2.1..
 
Etern;265676 said:
I have a problem with the script, whenever, I start the game, a message pops up and tells me that a "NoMethodError" occured in line 44, namely a "undefined method 'state' for SDK:Module" . Any solution for this?
Btw, I am using "SDK Part I II III IV" .

I am using the new SDK and it works just fine, I don't see how you have that problem.
 
Hey man, you saved me :D
On normal map is has about 6 - 9 FPS , now its even to 22 FPS :D
Game work's better :)
Thanks

PS: Someone wanted to know where to place this ? Well I've made a new above Main, and called it Antilag_Scene ... I think you should do the same ;)
Work's fine for me .
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top