You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Since i'm newbie with TmxLoader, I dunno how it is supposed to work but :
for (auto& layer : layers)
{
if (layer.type == tmx::ObjectGroup)
{
for (auto& obj : layer.objects)
{
if (layer.name == "Collectable")
{
if (obj.Contains(animatedSprite.getPosition()))
{
std::cout << "Test";
obj.SetVisible(false);
}
}
}
}
}
I've got the "Test" text in my cmd, but the object is still visible on the map, I really don't know what to think about it?
If anyone has suggestions, it would be really appreciated ! :)
The text was updated successfully, but these errors were encountered:
Hi,
Since i'm newbie with TmxLoader, I dunno how it is supposed to work but :
I've got the "Test" text in my cmd, but the object is still visible on the map, I really don't know what to think about it?
If anyone has suggestions, it would be really appreciated ! :)
The text was updated successfully, but these errors were encountered: