
-----------------------------------
neuro.akn
Fri Dec 21, 2012 9:33 pm

clear screen procedure in Turing for a game?
-----------------------------------
Hello, I have a question regarding the cls procedure in Turing. How does one call a cls procedure so that at a random point (during a game) the screen will clear for a certain amount of time and display something else, and then return back to the game being played prior?? This would help a lot for my final.

-----------------------------------
Metaxu
Sat Dec 22, 2012 12:34 pm

RE:clear screen procedure in Turing for a game?
-----------------------------------
i assume you could make a procedure that you could call that would generate a random number. If this number = whatever then cls? After a delay of whatever you choose i guess you could just re implement what you had before. re draw everything and such.

-----------------------------------
Raknarg
Sat Dec 22, 2012 9:35 pm

RE:clear screen procedure in Turing for a game?
-----------------------------------
Are you trying to make a menu screen or something?

-----------------------------------
neuro.akn
Fri Jan 04, 2013 8:51 pm

RE:clear screen procedure in Turing for a game?
-----------------------------------
Well, I'm trying to call a procedure to clear the screen at a random point during the game. I have the menu, I have the game functionality, I just need to call a procedure to clear screen at random points (more than once) throughout the game... Any ideas?

-----------------------------------
neuro.akn
Fri Jan 04, 2013 8:53 pm

RE:clear screen procedure in Turing for a game?
-----------------------------------
The game is similar to the game "Copter" in which one must control a helicopter using the mouse to pass obstacles.

-----------------------------------
Tony
Sat Jan 05, 2013 12:41 am

RE:clear screen procedure in Turing for a game?
-----------------------------------
so your game loop should look something like
cls could be that something.

-----------------------------------
neuro.akn
Sat Jan 05, 2013 5:34 pm

RE:clear screen procedure in Turing for a game?
-----------------------------------
I don't quite understand what you mean by this loop... I have the game and everything, and it works but what exactly do you mean with the "draw current world state" step? What would I write?

-----------------------------------
Raknarg
Sat Jan 05, 2013 6:01 pm

RE:clear screen procedure in Turing for a game?
-----------------------------------
Just draw everything out. You draw the map, any enemies out, the player, projectiles, obstacles, etc. Basically any drawing you have to do, you should do at the end.

-----------------------------------
neuro.akn
Sat Jan 05, 2013 6:46 pm

RE:clear screen procedure in Turing for a game?
-----------------------------------
I have everything drawn out and such, I just need to figure out how to call a cls procedure for clearing the screen at random points during gameplay

-----------------------------------
evildaddy911
Sat Jan 05, 2013 9:05 pm

RE:clear screen procedure in Turing for a game?
-----------------------------------
What he means is during the "do stuff" part is determine if the cls command will be called, then using a conditional during the "draw" stage:
 % do stuff section
if Rand.Real 