Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Text flickers when character is on the ground.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
undergroundmonorail




PostPosted: 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)



doublejump.bmp
 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)

doublejump.bmp



game.t
 Description:
The game I am having problems with.

Download
 Filename:  game.t
 Filesize:  6.91 KB
 Downloaded:  69 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: