Code:
for i in 0..9
@sprite_block[i] = Sprite.new
@sprite_block[i].bitmap = RPG::Cache.picture("block.png")
@sprite_block[i].x = i * 64
@sprite_block[i].y = 0
end
I want to make copies of the same picture (32x64 pixels) then put them in diffrent positions. How would i go about doing that instead of creating a new block of code for each picture? The crappy code above should give you an idea of want i want to do if you dont know what i mean. Obviously it doesn't work.
Thanks in advance.:thumb: