Hi am trying to make a simple shootout game to demonstrate the if else block to students. Can you tell me why it still displays 'miss' when the ball hits the goal.
This is a segmant of the code I am using:
[blocks]
<when[space ]key pressed>
<if><touching[goal]
<say[ goal ]for( 2 )secs>
<else> <say[ miss ]for( 2 )secs>
[/blocks]
Thanks in advance
Offline
Forget last message, have figured it out
Offline
im guessing because its the for 2 seconds part. try just using <say[ goal ]
Offline