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

Author Topic: Tiledmap Collision w/ Sprite character?  (Read 1154 times)

0 Members and 1 Guest are viewing this topic.

dehysqop

  • Newbie
  • *
  • Posts: 1
    • View Profile
Tiledmap Collision w/ Sprite character?
« on: June 02, 2018, 07:39:30 am »
First of all, sorry for this question.
I'm mostly looking for recommendations I guess

I've been looking alot for simple Tiledmap where collisions are included and can take effect on shapes(sprites).
So basically, not a tile-based character, so he can be moving smoothly in the map but encounter collisions.
I've been working with Tily https://github.com/GeneralNote/Tily but I never been able to place a some collision that the player sprite would be able to touch.

Being new to SFML is was wondering, can the library itself can actually do that? Or I'd be better with some more libraries and which one?
I please you, that if you know any good example of what I'm seeking for, to tell me  :-*

Well, sorry again about that strongly stupid question -- but thank for the ones that will know how to give more some knowledge :D

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Tiledmap Collision w/ Sprite character?
« Reply #1 on: June 02, 2018, 10:16:57 am »
You can write such code on top of SFML, but SFML isn't doing it for you automatically.

If you want something that supports this kind of stuff out of the box, I recommend looking at existing engines, for example the Godot engine.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything