RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
How do i make a town look likes its on fire!!??

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 88
I have been trying to make my opening town look as though its on fire but, when i set events all over the place and make the "show animation" it slows the game down way to much!  what can i do to make my town look like its on fire!

********
Rep:
Level 96
2011 Most Missed Member2010 Zero To Hero
Get an antilag script, try hbgames.org.

**
Rep: +0/-0Level 88

********
Rep:
Level 96
2011 Most Missed Member2010 Zero To Hero
Not a problem man, anytime.

**
Rep: +0/-0Level 88
K i went to that site looked for the anit lag script but i can download it!  the link just sends me to the register page which i already did!  help please!

**
Rep: +0/-0Level 88
oh and also.... how do a use a script! im new to the scripts!

********
Rep:
Level 96
2011 Most Missed Member2010 Zero To Hero
Open up the script editor, and scroll down until you see the script labeled "main". Click on it, then press the up arrow, and then press the insert key. Click in the SMALL text field and type in antilag or whatever will help you remember what the script is, and then PASTE the script in the LARGE text field. That should do it!

********
Rep:
Level 96
2011 Most Missed Member2010 Zero To Hero
This one was made by sandgolem, it should work.

Code: [Select]

#==========================================================================
# ** Anti Event Lag Script - SG Version
#==========================================================================
# Near Fantastica (edited by sandgolem)
# Based on Version 3
# 6.07.06
#==========================================================================

SG_AntiLagOff_Switch = 25

#==========================================================================
#
# To use this script, copy it and insert it in a new section above "Main",
# under the default scripts, and the SDK (required)
#
#==========================================================================

SDK.log('Anti Event Lag','Near Fantastica - edit by sandgolem',2,'6.07.06')

if SDK.state('Anti Event Lag')
#--------------------------------------------------------------------------

class Game_Map
  def nf_in_range?(object)
    if object.real_x <= @sg_screen_x or object.real_x >= @sg_screen_width or
    object.real_y <= @sg_screen_y or object.real_y >= @sg_screen_height
      return false
    end
    return true
  end

  def update_events
    @sg_screen_x = @display_x - 256
    @sg_screen_y = @display_y - 256
    @sg_screen_width = @display_x + 2816
    @sg_screen_height = @display_y + 2176
    if !$game_switches[SG_AntiLagOff_Switch]
      for event in @events.values
        if nf_in_range?(event) or event.trigger == 3 or event.trigger == 4
          event.update
        end
      end
    else
      for event in @events.values
        event.update
      end
    end
  end
end
  
class Spriteset_Map
  def nf_in_range?(object)
    if object.real_x <= @sg_screen_x or object.real_x >= @sg_screen_width or
    object.real_y <= @sg_screen_y or object.real_y >= @sg_screen_height
      return false
    end
    return true
  end

  def update_character_sprites
    @sg_screen_x = $game_map.display_x - 256
    @sg_screen_y = $game_map.display_y - 256
    @sg_screen_width = $game_map.display_x + 2816
    @sg_screen_height = $game_map.display_y + 2176
    if !$game_switches[SG_AntiLagOff_Switch]
      for sprite in @character_sprites
        if sprite.character.is_a?(Game_Event)
          if nf_in_range?(sprite.character) or sprite.character.trigger == 3 or sprite.character.trigger == 4
            sprite.update
          end
        else
          sprite.update
        end
      end
    else
      for sprite in @character_sprites
        sprite.update
      end
    end
  end
end

#------------------------------------------------------------------------------
end


Anything else? ;D

*
I love Firerain
Rep:
Level 97
=D
To use script, check blue's sticky topic
Arlen is hot.

**
Rep: +0/-0Level 88
Ok i dont know what im doing but its still not working. i do exactly what you said!  open up the script editor. go to the main one push up then insert! i pasted the whole thing you have on here and there is stupid errors when i try to play the game. then i got rid of the last "end" of the script and the game runs, but its still really laggy when i have a fire animation going in the background!! whats going on!  why does it lag!
« Last Edit: October 13, 2006, 04:26:42 PM by Laveniuk »

**
Rep: +0/-0Level 88
You've crossed a Terrible Fate.
You must probarly have a hellllll lot of events then XD

The Above Picture and Signature, are made by Dragonfly (C) 2006

"I see Reflected Reflections in the Reflections of my Reflection." -Me, Jesse G. Brands

**
Rep: +0/-0Level 88
any ideas on what to do! i dont have that many running at the same time! probably only one at a time.!!!

**
Rep: +0/-0Level 88
You've crossed a Terrible Fate.
Did you make a town out of alot of maps or just one big map? If it one big map, and it has loads of fire... Then It's the fire's fault. Too many events.

EDIT:

Here is a working version of the Anti-Lag script, the one Arrowone posted crashes.

Code: [Select]
#==========================================================================
# ** Anti Event Lag Script - SG Version
#==========================================================================
# Near Fantastica (edited by sandgolem)
# Based on Version 3
# 6.07.06
#==========================================================================

SG_AntiLagOff_Switch = 25

#==========================================================================
#
# To use this script, copy it and insert it in a new section above "Main",
# under the default scripts, and the SDK (required)
#
#==========================================================================

#--------------------------------------------------------------------------

class Game_Map
  def nf_in_range?(object)
    if object.real_x <= @sg_screen_x or object.real_x >= @sg_screen_width or
    object.real_y <= @sg_screen_y or object.real_y >= @sg_screen_height
      return false
    end
    return true
  end

  def update_events
    @sg_screen_x = @display_x - 256
    @sg_screen_y = @display_y - 256
    @sg_screen_width = @display_x + 2816
    @sg_screen_height = @display_y + 2176
    if !$game_switches[SG_AntiLagOff_Switch]
      for event in @events.values
        if nf_in_range?(event) or event.trigger == 3 or event.trigger == 4
          event.update
        end
      end
    else
      for event in @events.values
        event.update
      end
    end
  end
end
 
class Spriteset_Map
  def nf_in_range?(object)
    if object.real_x <= @sg_screen_x or object.real_x >= @sg_screen_width or
    object.real_y <= @sg_screen_y or object.real_y >= @sg_screen_height
      return false
    end
    return true
  end

  def update_character_sprites
    @sg_screen_x = $game_map.display_x - 256
    @sg_screen_y = $game_map.display_y - 256
    @sg_screen_width = $game_map.display_x + 2816
    @sg_screen_height = $game_map.display_y + 2176
    if !$game_switches[SG_AntiLagOff_Switch]
      for sprite in @character_sprites
        if sprite.character.is_a?(Game_Event)
          if nf_in_range?(sprite.character) or sprite.character.trigger == 3 or sprite.character.trigger == 4
            sprite.update
          end
        else
          sprite.update
        end
      end
    else
      for sprite in @character_sprites
        sprite.update
      end
    end
  end
end

#------------------------------------------------------------------------------
« Last Edit: October 13, 2006, 05:17:52 PM by Dragonfly »

The Above Picture and Signature, are made by Dragonfly (C) 2006

"I see Reflected Reflections in the Reflections of my Reflection." -Me, Jesse G. Brands

********
Rep:
Level 96
2011 Most Missed Member2010 Zero To Hero
Hmm...Good to know, I'll replace that script in my projects then.

HOWEVER: Be warned that this requires the SDK script, which is attached. SDK Must be posted ABOVE Main, but any other new scripts you attach must be inserted BELOW SDK.
« Last Edit: October 13, 2006, 05:31:19 PM by arrowone »

**
Rep: +0/-0Level 88
You've crossed a Terrible Fate.
Sorry Arrowone, that was my Crash, the SDK incompatibality. I am sorry, yours are fine =)

The Above Picture and Signature, are made by Dragonfly (C) 2006

"I see Reflected Reflections in the Reflections of my Reflection." -Me, Jesse G. Brands

****
Training Wheels
Rep:
Level 89
:)
it makes events that you cant see do nothing btw.
  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??

**
Rep: +0/-0Level 88
IT STILL DOESNT MAKE ANY SENCE!!

**
Rep: +0/-0Level 88
You've crossed a Terrible Fate.
It does if I explain it, all the fires have animations, which are all 101010101 (Binary) processes, your processor can't handle all those 1 and 0's at the same time, the Anti-Lag script pauses the 1 and 0's, so the processor won't have to do a thing with them, improving game performance. It's that simple.

The Above Picture and Signature, are made by Dragonfly (C) 2006

"I see Reflected Reflections in the Reflections of my Reflection." -Me, Jesse G. Brands

********
Rep:
Level 96
2011 Most Missed Member2010 Zero To Hero
If you really can't do it, PM me a link to your project, I'll fix it up for you.

****
Training Wheels
Rep:
Level 89
:)
It does if I explain it, all the fires have animations, which are all 101010101 (Binary) processes, your processor can't handle all those 1 and 0's at the same time, the Anti-Lag script pauses the 1 and 0's, so the processor won't have to do a thing with them, improving game performance. It's that simple.

You confused the poor thing...
  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??

**
Rep: +0/-0Level 88
You've crossed a Terrible Fate.
Yeah, I think I did....  :o

The Above Picture and Signature, are made by Dragonfly (C) 2006

"I see Reflected Reflections in the Reflections of my Reflection." -Me, Jesse G. Brands

****
Training Wheels
Rep:
Level 89
:)
  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??