Main Menu

How do i make a town look likes its on fire!!??

Started by Laveniuk, October 12, 2006, 05:33:23 PM

0 Members and 1 Guest are viewing this topic.

Laveniuk

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!

Arrow



Arrow


Laveniuk

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!

Laveniuk

oh and also.... how do a use a script! im new to the scripts!

Arrow

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!

Arrow

This one was made by sandgolem, it should work.



#==========================================================================
# ** 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

Nightwolf

Arlen is hot.

Laveniuk

#9
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!

Dragonfly

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

Laveniuk

any ideas on what to do! i dont have that many running at the same time! probably only one at a time.!!!

Dragonfly

#12
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.

#==========================================================================
# ** 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

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

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

Arrow

#13
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.

Dragonfly

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

veltonvelton

it makes events that you cant see do nothing btw.
  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??

Laveniuk


Dragonfly

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

Arrow

If you really can't do it, PM me a link to your project, I'll fix it up for you.

veltonvelton

Quote from: Dragonfly on October 13, 2006, 09:35:22 PM
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'??

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

veltonvelton

  • Web designer
  • Music producer/DJ
  • Graphic Designer
Why am I 'training wheels'??