Hey. I need help. Can someone please tell me how i can do the following? Just tell me exactly what to put into the script...
When my sprite hits the edge of the stage, i want it to be "Game Over" and i want the timer to reset and a big message coming up saying "Game Over" Please someone tell me how to do it xxoxoxoxo
Offline
Try this:
The edge for the right is kind of at: 247,-12
left: -239,-6
up: 8,180
down: 6,-179
^^ You can modify these to get special locations
So the script would be
When flag clicked
wait until x position= (one of the above x's)
wait until y position= (one of the above y's)
YOU EVEN CAN USE OR TO BE MORE SPECIFIC:)
the rest could be:
broadcast game over
reset timer
then, on your game over sprite, the script would be:
when flag clicked
hide
when game over recieved
show
There you go! If you need help you can ask
-CP
Offline
Oyessj wrote:
none of these work!
Do you want everything to stop at the game over? If so, you can use the Stop All block. But that stops the entire project. If you want to stop certain scripts, you can make a variable called 'Game Over' (a variable is the red-orange blocks). Then you can use the sensing system that CoolPenguin suggested above (if x or y = greater than or less than the edge coordinates) and set Game Over to 1. Then you can place an If Block inside of the scripts you want stopped, where it checks if Game Over is set to 1, and if it is 1, stop script.
Offline
I Need Help With This Too. Do Anyof Them Work
Offline
<when green flag clicked>
<forever>
<if> <touching[ edge]
<set{ (mode)} to( (game over) }>
<stop all>
Last edited by Tbtemplex97 (2012-05-24 13:49:10)
Offline
I Want My Game To Be When It Gets To 0 Lives It Is Game Over
Offline