SFML community forums

Help => General => Topic started by: DuffCola on September 26, 2013, 08:10:53 pm

Title: SFML Scene Graph crazy problem
Post by: DuffCola on September 26, 2013, 08:10:53 pm
Hello.
I read the SFML Game development book.
I am currently at the Scene Graph, but I am have a problem.
If I attach a SpriteNode to the SceneGraph all works perfect.
If I add a SpriteNode to the SpriteNode before it works perfect, too(The second SpriteNode is relative to the first SpriteNode).
But if I attach now again a SpriteNode to the first SpriteNode this SpriteNode is relative to the second SpriteNode.
Know anyone what I do wrong ?
If someone need the code please write it, maybe you know the mistake without any code from me.
http://s1.directupload.net/images/130926/4edkcoro.png
Title: Re: SFML Scene Graph crazy problem
Post by: Ixrec on September 26, 2013, 08:20:34 pm
Yeah, we're going to have to see code.  We can't even tell from that screenshot if anything's actually wrong because we can't see what coordinates you're actually giving all the objects (the ones on the picture don't count).
Title: Re: SFML Scene Graph crazy problem
Post by: Stauricus on September 27, 2013, 02:52:33 pm
as far as i know, there is no scenegraph in SFML. so atleast you need to show how you coded it...
Title: Re: SFML Scene Graph crazy problem
Post by: Lo-X on September 27, 2013, 03:26:30 pm
as far as i know, there is no scenegraph in SFML. so atleast you need to show how you coded it...

he's speaking about the SceneGraph in SFML Development Book. But indeed we need some minima code to help out.