![]() |
|
|
|
#1
|
|||
|
|||
|
1. Theres a variable called scoreLabel.score that it incremented in the onCollide function. When that is equal to 10 you can change the scoreLabel message to say congratulations.
2. You can change the ball speed after a GUI event occurs. For example, if you are using a slider, once the slider position is changed you could get it's position and base the speed on that. The documentation has examples of using GUI objects and handling GUI events. |
|
#2
|
|||
|
|||
|
Hi Jeff,
I was successful in changing the message to 'congrats' after reaching a target score. But how to end the game... I mean how to disable the onscreen events after that particular target is reached ? Another question is the slider thing didnt work at all with all the possible combinations... can u help me out on this... The tutorial didnt work for me.... In the duck game if I have to randomly make the ducks move in both left and right directions what changes should I make to the code.. I am stuck with it... Hope u understand... THanks Swami |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|