Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: (SFML C#) How do I take a portion of an image, and use it as another sprite...?  (Read 1581 times)

0 Members and 1 Guest are viewing this topic.

Geoffry_the_Deprogrammer

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
I apologise if this is difficult to make sense of, but i am having immense difficulty figuring out how to use spritesheets, as I am currently trying to take a portion of the spritesheet and make that the player sprite, however, i cannot figure out how to set a portion of an image as the sprite... thanks for any and all help...

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Sprite.TextureRect = new IntRect(...);
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor