1
Graphics / Basic sprite questions
« on: July 01, 2021, 12:07:17 am »
I have a few basic sprite questions i'm a bit new to SFML.
So i want to display some kind of sprite and also be able to detect collisions, this sprite is a sort of abstract shape, with a transparent background in a rectangular png file.
so what would be the best way to go about this, i'm aware of several, I think its possible to just load the sprite into a sprite class, but my question is, would the transparent background be apart of the sprite still? for example, if something collided with the transparent background would that register as a collision to the sprite?
And i've found another way to roughly approximate the sprite with a convex shape, than load the sprite as a texture into that shape, but i was just wondering if this was necessary.
So i want to display some kind of sprite and also be able to detect collisions, this sprite is a sort of abstract shape, with a transparent background in a rectangular png file.
so what would be the best way to go about this, i'm aware of several, I think its possible to just load the sprite into a sprite class, but my question is, would the transparent background be apart of the sprite still? for example, if something collided with the transparent background would that register as a collision to the sprite?
And i've found another way to roughly approximate the sprite with a convex shape, than load the sprite as a texture into that shape, but i was just wondering if this was necessary.