Spritefont text disappearing

Just started using Construct 2? Post your questions here

Post » Wed Nov 30, 2016 12:03 am

I'm making this simple Trivia quiz for mobile platform, so i'm using SpriteFont, since it's less cpu intensive than normal Text plugin, but text for some reason keeps disappearing, unless i change height of the Sprite font object to the some abnormaly big value. Right now text is normaly showing at height 80, but when i add event sheet to the layout i have to increase height to 200 in order for text to be shown. Text is in one line, so i don't know why is requiring this big Height value.

Here is capx:
https://www.dropbox.com/s/q1uexsxc88po2 ... .capx?dl=0
B
14
S
3
G
1
Posts: 93
Reputation: 1,011

Post » Wed Nov 30, 2016 12:20 am

Careful. You are using SpriteFont+, not the official SpriteFont plugin. SF+ has not been maintained in several years.
ImageImageImage
B
71
S
21
G
220
Posts: 3,649
Reputation: 123,727

Post » Wed Nov 30, 2016 8:43 am

Same thing is happening even with the official spritefont plugin

EDIT: Same thing i happening also with official Text plugin
B
14
S
3
G
1
Posts: 93
Reputation: 1,011

Post » Wed Nov 30, 2016 2:24 pm

I have figured out where's the problem!
Problem was with my text file, from which i was loading data,

When i place all my data in one line there is no problem
1;Scooby-Doo;Pikachu;Spiderman;Cindrella;Scooby-Doo;
|
2;Bart;Samurai Jack;Batman;Yogi;Batman;

But when i place data in multiple lines there is a problem
1;Scooby-Doo;
Pikachu;
Spiderman;
Cindrella;
Scooby-Doo;
|
2;Bart;
Samurai Jack;
Batman;
Yogi;
Batman;

You may think why? When i'm using tokenat to get data, tokenat is loading new line with the data, so that's why text area is requiring higher height than it needs.
B
14
S
3
G
1
Posts: 93
Reputation: 1,011


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest