Jump to content




The x and y coords dont work properly for me


  • You cannot reply to this topic
3 replies to this topic

#1 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 07 March 2013 - 03:38 AM

Hi,

as I provided in the title, my x and y coords dont work properly and I am aware that it is because my programming 'skills'.
The rest of codes work, except line 113:
Simple Store program

Thanks in advance as always :P

Engineer

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 07 March 2013 - 03:57 AM

Your statement
if x > 42 and 50 < x and y == 1 then
Checks if x is greater than 42 and that 50 is less than x. so that means that only 51 will trigger it. since 51 is both larger than 42 and 50. So make it this and it will be fine.
if x > 42 and x < 50 and y == 1 then


#3 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 07 March 2013 - 04:02 AM

I am very derpy, the worst part is that I have made buttons that work and I just could have looked at that.. What was I even thinking?!

Well thanks BIT, for correcting me :)

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 07 March 2013 - 07:53 PM

no problems. i will admit that it took me a little while to notice it too.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users