Main Menu
  • Welcome to The RPG Maker Resource Kit.

Would this do anything?

Started by &&&&&&&&&&&&&, January 10, 2007, 07:33:51 PM

0 Members and 1 Guest are viewing this topic.

&&&&&&&&&&&&&

Ok, im at school so I cant check if this works so, would this code do anything, and is there something I can change to make it work?

class pic 
   def say
   print @greeting + " " + @name   
   image = Sprite.new
    image.bitmap = RPG::Cache.picture(name of picture)
   end

end


Oh, and I wrote it...  :lol:
&&&&&&&&&&&&&&&&

Blizzard

It should work, but you would first need to load an instance of the class somewhere

picture = pic.new

and define the variables @greeting and @name.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!