Problem With Blinking/Flashing Text
Hey guys! This is my very first post. I've learned a ton by searching the forums and finding answers from others questions.
Ive searched a ton and cant find a answer to my problem. Seems like a lot of people are trying to get blinking text where I want it GONE!
Problem: I have an endless runner type of game where my actor is constrained on the x-axis and everything moves to the left (ground loops on the x-axis and makes it look like the actor is moving). I want to incorporate a text display that displays the "distance" traveled. It works on a timer and increases as time goes on. When the numbers increase, there is a very noticeable flashing/blinking look between number changes. I want the numbers to be very fluent in the changes as it increases.
Logic:
Rule:
Timer: Every. 0.5 seconds
Display Text: game.Distance Traveled
Change attribute: set: game.Distance Traveled to: game.Distance Traveled+1
I created an integer in Game called Distance Traveled and set it to 1.
If anyone can help me it would be very appreciated. If you need more info just let me know! Look forward to meeting the community as you all seem very helpful and nice. Thanks!
Comments
Hey @gameunites welcome to the forums. Is this happening just in the Creator, or have you made an adhoc build, and tried it on a device, and it still happening?
Just on the preview screen on the application itself! I haven't exported it to a device at the moment. Btw I'm working on windows, not a mac if that helps.
Does it change when its ran on a device?
Yes, the quality is much better on a device. The Creator is not showing 100% quality. Although, it's always best to test it on a device to make sure it's not going to happen on there.
If it does happen on a device, you may want to consider increasing the size of the text a little. Sometimes small text can get "altered" if it's really small.
Don't put the display text in the timer.
Thank you very much @BBEnk! That was the problem. There was a huge lag in the number changes and now its fluent. Very simple and easy fix. Didn't think that would have done anything, but it did. Thanks again!
It was blinking because your timer only showed it every 0.5 seconds, taking it out of the timer allows it to display continuously.
and your welcome.
Makes sense!
Or that...Sorry @gameunites. I had this same issue once, and what fixed my issue was what I described, but I wasn't using a timer. Anyway, glad you got it working.