SFML community forums
Help => Graphics => Topic started by: minersail on September 15, 2015, 01:17:19 am
-
I'm new to SFML, and I'm trying to make a basic rpg game. I tried making a dialogue system, but when I try to modify or retrieve the location of an sf::Text (e.g. setOrigin() or getLocalBounds()), I get this error:
(http://i.imgur.com/s7LbNgr.png?1)
These properties on the other sprites have been working perfectly, and the sf::Text's other functions such as getColor() or setString() are working without crashing. I don't know why this is crashing, could someone help me?
-
Okay, after reading other threads in this forum, I decided to change the constructor for the DialogueBox class to pass in a font through reference, and the game works now.
I guess this can be marked as solved.