@sprites["Background"] = Sprite.new # This defines the variable is a new sprite.
@sprites["Background"].x = 20 # This sets the horizontal position, showing it as
# the value of 20.
@sprites["Background"].y = 100 # This sets the verticle position.
@sprites["Background"].z = 900 # This sets which layer the image is on, higher the
#number is, the higher the image is set above other images.
@sprites["Background"].bitmap = BitmapCache.load_bitmap("Graphics/FolderName/ImageName")
#This line is setting what the image will be, ("Graphics/FolderName/ImageName") is
#important as it directs the code to where the image is.
You can also manipulate the images in many ways. For example:
That is the basic information you need to know when it comes to displaying images.