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

Author Topic: Building mechanic?  (Read 1839 times)

0 Members and 1 Guest are viewing this topic.

GAMINGBACON97

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Building mechanic?
« on: August 31, 2015, 02:23:32 pm »
I have googled this issue a few times, and I can't come up with an idea, but i want to figure out how to make a block building mechanic in 2d, I think you could have like a sprite spawn at a players position+1 or something, but not exactly sure about it, so help would be greatly appreciated. Also I will not be able to reply to this too much, because i am at school, so. Yah thx in advance!!

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Building mechanic?
« Reply #1 on: August 31, 2015, 02:26:55 pm »
What is a "block building mechanic"? Can you express yourself more clearly and give an example?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

GAMINGBACON97

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Re: Building mechanic?
« Reply #2 on: August 31, 2015, 06:53:20 pm »
The best example I could give would be something like terraria or 2d Minecraft

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Building mechanic?
« Reply #3 on: August 31, 2015, 06:58:22 pm »
And what's your question? If you're looking for a complete guide on how to develop such a game, I'm sure you'll find tons of tutorials and articles on the Internet. If you have no idea how to start at all, maybe you lack some experience in game development, and should start with something simpler first?

This forum is about the SFML library, and we'd like to keep questions and answers focused :)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

GAMINGBACON97

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Re: Building mechanic?
« Reply #4 on: August 31, 2015, 07:10:36 pm »
I have an idea of where to start, I posted that in the original at the top, I'm just wondering if anyone has any other ideas?

Spirro

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Building mechanic?
« Reply #5 on: August 31, 2015, 08:22:06 pm »
As Nexus said, you really aren't all that clear on specifics of what you want.  But for a suggestion try https://github.com/nothings and look at the obbj section.  Sean Barret occasionally streams his coding on this project so if you catch him on you could pose questions.

GAMINGBACON97

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Re: Building mechanic?
« Reply #6 on: August 31, 2015, 11:42:01 pm »
what I want to accomplish is put down some resources, and a timer for my player to build, the other junk happens, I'm wondering how I could impliment some sort of a grid, I think I know how to do the rest, but I have only the slightest idea of how to do a tile grid.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Building mechanic?
« Reply #7 on: August 31, 2015, 11:47:34 pm »
Have you even researched a little bit? I'm sure it's easy to find good resources on all of the topics you've asked. Again: this is a SFML forum where you can ask questions about the library, the idea is not that we explain how to develop a game from the ground up ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: