Skip to Content
About
Discussions
Resources
Stories
Home
»
Discussions
»
How do I...?
if key pressed vs when key pressed
1 Reply
0 Bookmarks
«
How do I...?
Login
to post comments
1 reply [
Last post
]
Shawn Woodall
Member
July 07, 2018
What is the difference between these two blocks of code
Replies
Elaine Margaritis
Member
July 08, 2018
I can't see the second block of code.
Did the second block say: When key pressed, forever move 10 steps.
The first block says that only if the green flag is pressed, then check the space key, otherwise don't do anything if the space key is pressed.
Hope that answers your question
Did the second block say: When key pressed, forever move 10 steps.
The first block says that only if the green flag is pressed, then check the space key, otherwise don't do anything if the space key is pressed.
Hope that answers your question