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

2018/7/27

Broken code

Ticker175 Ticker175

2018/7/27

#
please watch the video and let me know if u know whats wrong
Super_Hippo Super_Hippo

2018/7/27

#
(0|0) is in the top left corner. So you need a positive delta Y to check for something below. Right now, you check for an object above Pac-Man.
Ticker175 Ticker175

2018/7/29

#
not entirely sure what you are talking about. do you mean that when i look for an object (0,15) it says that 0,0 is the top left corner?? because i thought that 0,0 is the center of the object and either way i dont see how that would affect my code? Thanks Thomas
Super_Hippo Super_Hippo

2018/7/30

#
Yes, (0, 0) is the center of the object, but (0,15) is 15 cells below the object, not above it.
Ticker175 Ticker175

2018/7/30

#
thanks i realised what your saying and when i inverted the up and down cordenets (from - to + and visa versa) and it worked!!! Thanks Thomas
You need to login to post a reply.