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

Author Topic: Resolving 2 sprites  (Read 1674 times)

0 Members and 1 Guest are viewing this topic.

geoteam

  • Newbie
  • *
  • Posts: 4
    • View Profile
Resolving 2 sprites
« on: April 02, 2012, 03:58:34 am »
I am using SFML in my collision detection code but i need help once the two object collide i need them to be solid but i am completely lost. Can someone help me with this?

Marcus

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Resolving 2 sprites
« Reply #1 on: April 02, 2012, 04:26:37 am »
What do you mean by "solid"?

Vovosunt

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Resolving 2 sprites
« Reply #2 on: April 02, 2012, 05:45:02 pm »
Do you mean the two objects should combine into one?
If so, then you could try using a rendertexture and rendering both sprites onto it.

geoteam

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Resolving 2 sprites
« Reply #3 on: April 03, 2012, 01:44:27 am »
what i trying to say is when i have a collision i need to move the object outside of the other object giving the illusion that it is solid and all the things i have tried give me weird errors where it will resolve to the other side of the object and other stuff like that