Save-Point
Animated Tileset - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: Animated Tileset (/thread-792.html)



Animated Tileset - kingartur2 - 02-05-2010

Animated Tileset
Description

It allows of the whole tileset make animate


Autor

kingartur2



Attachment

DEMO


Istructions

In the script


Content Hidden

Bugs

N/A


Sorry if I make any errors in the post,
I'm italian.Cheery


Animated Tileset - Ace - 02-05-2010

it says a .dll is missing, could you fix that?


Animated Tileset - DerVVulfman - 02-07-2010

There is no missing dll. But there is a missing 'begin' statement withing the filetest module.

Use this and it will work:
Code:
module FileTest
  def self.tileset?(string)
    begin
      RPG::Cache.tileset(string)
      return true
    rescue
      return false
    end
  end
end



Animated Tileset - Ace - 02-07-2010

Alright, it works^^
I like it, actually you can simulate storms or winds with this. great script!


Animated Tileset - kingartur2 - 02-07-2010

thanks, however it is strange that want us the begin because if you see in the demo the script you/he/she has put as I have posted him and it works.


Animated Tileset - DerVVulfman - 02-08-2010

Actually, the demo did not work for me until I added the 'begin' statement. It goes 'begin... return.... end' . The begin statement is the start of a code block just like the if statement (if... end / begin... end).