Strict Standards: Non-static method phpbb_feed_factory::init() should not be called statically in /home/jacius/rubygame/forums/feed.php on line 66
[phpBB Debug] PHP Notice: in file /feed.php on line 171: Cannot modify header information - headers already sent by (output started at /feed.php:66)
[phpBB Debug] PHP Notice: in file /feed.php on line 172: Cannot modify header information - headers already sent by (output started at /feed.php:66)
Rubygame Forums 2011-02-15T16:21:28+00:00 http://rubygame.org/forums/feed.php?f=4&t=649 2011-02-15T16:21:28+00:00 http://rubygame.org/forums/viewtopic.php?t=649&p=1343#p1343 <![CDATA[Re: Problems during the rotation of an image]]>
In the initialization of my surface which was containing the image to spin I had this line that was making my background black...

Code:
@original.set_colorkey( @original.get_at([0,0]) )


So I removed it and it's ok now, sorry for my useless post!

Statistics: Posted by ian130mx — Tue Feb 15, 2011 4:21 pm


]]>
2011-02-13T14:37:17+00:00 http://rubygame.org/forums/viewtopic.php?t=649&p=1304#p1304 <![CDATA[[Solved] Problems during the rotation of an image]]>
I'm trying to rotate an image with the Surface#rotozoom method. Actually it is working, the picture rotates as I want, but the problem is that when it rotates the background around the picture "disappear" to let the place to a black square...
Here is what happen when the rotation is applied :
Image

And here is the normal position :
Image

Can you help me to fix that problem ?
Here is the code where I apply the rotation:

Code:
   def spin
      center = @rect.center
      @rotate += 10
      @image = @original.rotozoom(@rotate,1,true)
      @rect.size=[100,100]
      @rect = @image.make_rect()
      @rect.center = center
      if @rotate >= 360
         @image = @original
         @rotate = 0
      end
   end

Statistics: Posted by ian130mx — Sun Feb 13, 2011 2:37 pm


]]>