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

Author Topic: [Solved] Issue with tilemap/vertex arrays tutorial  (Read 202 times)

0 Members and 1 Guest are viewing this topic.

Evil_Shenanigans

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
[Solved] Issue with tilemap/vertex arrays tutorial
« on: June 09, 2024, 12:02:58 pm »
Hey, I'm having the attached issue when trying to generate a tilemap from following this tutorial: https://www.sfml-dev.org/tutorials/2.6/graphics-vertex-array.php

See the attached "render error.png" for what's displayed.

I'm using vs and I don't get any build errors so I think I've set up headers etc properly.

Below is my code:
(click to show/hide)
« Last Edit: June 09, 2024, 12:20:34 pm by Evil_Shenanigans »

Evil_Shenanigans

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Issue with tilemap/vertex arrays tutorial
« Reply #1 on: June 09, 2024, 12:15:32 pm »
I found the issue...

I managed to delete this line of code:
Quote
triangles[0].position = sf::Vector2f(i * tileSize.x, j * tileSize.y);