any change in angle will rewrite pixel of bitmap ? :???:
Can someone show/tell me the code used in the Sprite Class :huh:
thanks, sorry for my bad English. :)
The Bitmap stays unchanged. Bitmap represents the image data while Sprite contains data about how Bitmap should be rendered. "angle" is a property of the Sprite class. It can be used like this:
sprite = Sprite.new
sprite.bitmap = Bitmap.new(64, 64) # or any bitmap in existence
sprite.angle = 30
yeah, i know that.
i mean..
def angle=(value)
blablaabla
end
I want to know the contents(blablaabla) of "angle" method . :)
sorry for my bad english :facepalm:
They are implemented in C and are not accessible. I expect that it's a simple assigner of a variable that is then internally used for rotation during rendering.
oww :huh:
uhm.. thanks Blizzard. :)
good luck ARC :D