Text flickers when character is on the ground.
Author |
Message |
undergroundmonorail
|
Posted: Wed May 23, 2012 9:31 am Post subject: Text flickers when character is on the ground. |
|
|
Welp, turns out I'm a moron again. Had a View.Update in part of my collision that I was using to debug something earlier. Whoops.
What is it you are trying to achieve?
Make a platformer game which shows the player's score in the corner.
What is the problem you are having?
Whenever the player is on the ground, the text flickers. When the player is in the air this doesn't happen.
Describe what you have tried to solve this problem
I have tried moving the updating text code relative to the View.Update, with no avail.
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
I've attached the entire thing, because I have no idea what code could be relevant. If the playerOnGround detection is messing with the text, who knows what else could be wrong with it?
Please specify what version of Turing you are using
OpenTuring 1.0.1 (Based on Turing 4.1)
Description: |
You have to have this in the same folder as the game, or it will crash. |
|
Filesize: |
6.03 KB |
Viewed: |
968 Time(s) |

|
Description: |
The game I am having problems with. |
|
 Download |
Filename: |
game.t |
Filesize: |
6.91 KB |
Downloaded: |
69 Time(s) |
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Raknarg

|
Posted: Wed May 23, 2012 1:48 pm Post subject: RE:Text flickers when character is on the ground. |
|
|
First, make sure you use this line:
setscreen ("offscreenonly")
Then make sure you only use View.Update ONCE, after everythingis drawn, unless absolutely necessary
|
|
|
|
|
 |
|
|