Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
sf::Text transforming properties not working
Print
Pages: [
1
]
Author
Topic: sf::Text transforming properties not working (Read 1134 times)
0 Members and 1 Guest are viewing this topic.
minersail
Newbie
Posts: 2
sf::Text transforming properties not working
«
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:
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?
«
Last Edit: September 15, 2015, 03:01:53 am by minersail
»
Logged
minersail
Newbie
Posts: 2
Re: sf::Text transforming properties not working
«
Reply #1 on:
September 15, 2015, 03:01:32 am »
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.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
sf::Text transforming properties not working
anything