SFML and Collision

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
WedranB
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 2
Joined: Wed Mar 03, 2010 1:05 am

SFML and Collision

Post by WedranB »

Hi my name is Vedran i come frome Croatia...
I am beginner in C++ but i have experience with Allegro,AS 3.0,Flixel,python,pygame...xD

My latest mini game writen(ported) in Action Script 3 is called Suicide Is Not The Answer,play here -> http://www.swfcabin.com/open/1271434497 :mrgreen:

Now i want to learn SFML but i have problems with collision!!! :bow:
Can someone send me link for basic collision?

~tnQ
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: SFML and Collision

Post by MrDeathNote »

WedranB wrote:Hi my name is Vedran i come frome Croatia...
I am beginner in C++ but i have experience with Allegro,AS 3.0,Flixel,python,pygame...xD

My latest mini game writen(ported) in Action Script 3 is called Suicide Is Not The Answer,play here -> http://www.swfcabin.com/open/1271434497 :mrgreen:

Now i want to learn SFML but i have problems with collision!!! :bow:
Can someone send me link for basic collision?

~tnQ
Collision isn't anything to do with SFML, the c++ code for collision is common to all api's. What kind of collision detection do you need? Axis aligned bounding box, oriented bounding box, circular collision, pixel perfect? Until we know what kind you need it's hard to give advice, you should check out the education index anyway http://elysianshadows.com/phpBB3/viewto ... f=6&t=4257
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
WedranB
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 2
Joined: Wed Mar 03, 2010 1:05 am

Re: SFML and Collision

Post by WedranB »

MrDeathNote wrote:
WedranB wrote:Hi my name is Vedran i come frome Croatia...
I am beginner in C++ but i have experience with Allegro,AS 3.0,Flixel,python,pygame...xD

My latest mini game writen(ported) in Action Script 3 is called Suicide Is Not The Answer,play here -> http://www.swfcabin.com/open/1271434497 :mrgreen:

Now i want to learn SFML but i have problems with collision!!! :bow:
Can someone send me link for basic collision?

~tnQ
Collision isn't anything to do with SFML, the c++ code for collision is common to all api's. What kind of collision detection do you need? Axis aligned bounding box, oriented bounding box, circular collision, pixel perfect? Until we know what kind you need it's hard to give advice, you should check out the education index anyway http://elysianshadows.com/phpBB3/viewto ... f=6&t=4257
I think i need bounding box collision! (:
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: SFML and Collision

Post by MrDeathNote »

WedranB wrote:
MrDeathNote wrote:
WedranB wrote:Hi my name is Vedran i come frome Croatia...
I am beginner in C++ but i have experience with Allegro,AS 3.0,Flixel,python,pygame...xD

My latest mini game writen(ported) in Action Script 3 is called Suicide Is Not The Answer,play here -> http://www.swfcabin.com/open/1271434497 :mrgreen:

Now i want to learn SFML but i have problems with collision!!! :bow:
Can someone send me link for basic collision?

~tnQ
Collision isn't anything to do with SFML, the c++ code for collision is common to all api's. What kind of collision detection do you need? Axis aligned bounding box, oriented bounding box, circular collision, pixel perfect? Until we know what kind you need it's hard to give advice, you should check out the education index anyway http://elysianshadows.com/phpBB3/viewto ... f=6&t=4257
I think i need bounding box collision! (:
Axis aligned or oriented? Axis aligned bounding box is pretty simple and theres a great topic already here about it. Heres a link http://elysianshadows.com/phpBB3/viewto ... art=999999
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Post Reply