This site requires JavaScript, please enable it in your browser!
Greenfoot back
C&PIndustries
C&PIndustries wrote ...

2018/9/20

darn you quotes!!!

C&PIndustries C&PIndustries

2018/9/20

#
So I´m finally starting my one way track to become a coding master and ran into a problem. I am using Greenfoot version 2.4.2. I have to use this version because I have a raspberry pi and can not use a higher version. The problem I´m having is when I put in, if(Greenfoot.isKeyDown(¨right¨) it says that there is an illegal character to the left of the first quote and makes everything after it surrounded by white instead in grey
danpost danpost

2018/9/20

#
You are missing a closing parenthesis to close the 'if' parameter. Should be: if(Greenfoot.isKeyDown(¨right¨))
davmac davmac

2018/9/21

#
if(Greenfoot.isKeyDown(¨right¨)
I'm not sure what character that is, but it is not the correct quote. You need to use the < " > character, not < ¨ >. On a UK keyboard it is shift+2, on a US keyboard it is shift+' (the key next to "enter").
You need to login to post a reply.