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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - TheUnliked

Pages: [1]
1
Graphics / Drawing Inside Containers
« on: September 15, 2018, 08:33:32 am »
Hi there,

I'm pretty new to SFML so bear with me.
Is it possible to split the areas of the window into containers?

I'm making a Tetris game and I want to separate the GUI from the game itself by placing the game objects (e.g. the grid and tetris blocks) inside a container which can then be moved around.
This would really help in organizing the window as the positions of the objects inside the container would be relative to the position of the container.

I've tried using a view but have run into scaling problems. I'm guessing it's not designed for grouping objects and is meant to be used as a camera.

What other options are there for achieving this? Any help would be highly appreciated.

Pages: [1]