How to slow down number generator, create victory screen ?
Posted: Sat May 25, 2013 2:14 pm
This is my first time making game. I decided to make grid like game and encountered several issues i hope someone can help me with:
1. My random number generator generates numbers to fast, making computer cube move like a missile. I guess its due to being in update function and updates happening very rapidly, is there any way to slow it down, that computer cube is moving slower ?
2. How to create victory/ defeat screen ? What i want is, after collision with computer or collision with eXit cube for victory/ defeat screen to appear, i tried it in DefeatScreen() function but nothing happens, is there any way to do it and make it stay while appropriate action is made ? In this case space to retry, escape to exit.
3. Is there any way to make explosion like sprites appear when collision happen and stay for a sec or two before defeat screen rolls in ?
Any advice on game or help about issues would be appreciated!
I have added my code in love zip file.
1. My random number generator generates numbers to fast, making computer cube move like a missile. I guess its due to being in update function and updates happening very rapidly, is there any way to slow it down, that computer cube is moving slower ?
2. How to create victory/ defeat screen ? What i want is, after collision with computer or collision with eXit cube for victory/ defeat screen to appear, i tried it in DefeatScreen() function but nothing happens, is there any way to do it and make it stay while appropriate action is made ? In this case space to retry, escape to exit.
3. Is there any way to make explosion like sprites appear when collision happen and stay for a sec or two before defeat screen rolls in ?
Any advice on game or help about issues would be appreciated!
I have added my code in love zip file.