46
Graphics / Is it possible to draw FloatRects to the screen?
« on: January 22, 2012, 07:45:03 pm »
sf::RectangleShape
?
?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I'm not really sure what people have against just drawing a sprite and hiding the OS cursor.
<?xml version="1.0" encoding="utf-8" ?>
<sprite src="spritesheet.png">
<animnation name="down" loop="true">
<frame name="down_1" x ="0" y="0" w="16" h="32"/>
<frame name="down_2" x ="17" y="0" w="16" h="32"/>
<frame name="down_3" x ="34" y="0" w="16" h="32"/>
<frame name="down_4" x ="51" y="0" w="16" h="32"/>
</animnation>
<animnation name="left" loop="true">
<frame name="left_1" x ="68" y="0" w="16" h="32"/>
<frame name="left_2" x ="85" y="0" w="16" h="32"/>
<frame name="left_3" x ="0" y="33" w="16" h="32"/>
<frame name="left_4" x ="17" y="33" w="16" h="32"/>
</animnation>
<animnation name="right" loop="true">
<frame name="right_1" x ="0" y="66" w="16" h="32"/>
<frame name="right_2" x ="34" y="33" w="16" h="32"/>
<frame name="right_3" x ="17" y="66" w="16" h="32"/>
<frame name="right_4" x ="51" y="33" w="16" h="32"/>
</animnation>
<animnation name="up" loop="true">
<frame name="up_1" x ="34" y="66" w="16" h="32"/>
<frame name="up_2" x ="68" y="33" w="16" h="32"/>
<frame name="up_3" x ="51" y="66" w="16" h="32"/>
<frame name="up_4" x ="85" y="33" w="16" h="32"/>
</animnation>
<image name="head" x ="68" y="66" w="16" h="16"/>
</sprite>
g_spritesheet playerSheet;
player.loadPlayer("playerimage");
player.setAnim("right");
player.setSpeed(4);
Really strange. We're using fast delegates which were made possible using a LOT of hacks for various compilers, however there weren't issues with MSVC10 yet.
Just to make sure: Would you mind uploading your full project somewhere so we can check?
Could you please do a 'cout' in the handler to see if it's really not called?