Difference between Sprite Font and Text objects

Just started using Construct 2? Post your questions here

Post » Mon Nov 16, 2015 2:37 am

I recently switched over to using Sprite Fonts from Text objects and am working on transitioning the events to reflect this. The following events worked perfectly fine when using Text objects but when I switched over to Sprite Fonts it seems that the len(SpriteFontSource.Floodedshrinestatue1) never equals len(Spritefontdisplay.text).

Image

It works up until event 2033 and I can't figure out why the issue is occurring.
B
10
S
2
G
2
Posts: 87
Reputation: 1,274

Post » Tue Nov 17, 2015 3:40 pm

Just a thing, I'm almost sure least time the game can "wait" is 0.01 (0.016 to be more exact, which is 1 a frame delay at 60fps). Just not sure if the game considers "0.00001" as being 0 or 0.01
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Tue Nov 17, 2015 7:54 pm

I did not know that. Thanks!

I also solved the issue by replacing the len events with Spritefontdisplay comparing its own text value. I am still not sure what caused the initial issue though.
B
10
S
2
G
2
Posts: 87
Reputation: 1,274


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests