if (!keyboard_state[DIK_PRIOR]) //PAGE UP
rotr = false;
if (keyboard_state[DIK_PRIOR] && !rotr)
{
Rotate_Right();
hold down key>one rotation
still in the tetris clonie making
currently, my block seems to rotate many times if a key is pressed down.
if there a way that if i hold down the key, the object
will only rotate once, and not many times?
the is the code i currently use>
//global
bool rotr = false;
//part of rotation code
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement