Jump to content




Can't Update Coords?


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

#1 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 25 April 2012 - 01:44 AM

http://pastebin.com/zJGJH4Ai
Above is the code.
Both computers connect and they can move around and stuff but it doesn't show on the other's computer?
I use vars for the send and connecting.
It sends a msg rednet.send(player2, "up") and when the other computer receives it should do
currentY = currentY - 1
drawSprite() -- redraws the screen.

But it doesnt seem to do that?

#2 ComputerCraftFan11

  • Members
  • 771 posts
  • LocationHawaii

Posted 25 April 2012 - 02:26 AM

http://pastebin.com/f0QB7bxD

This should fix it.
It never worked because it never received

The second while true do will never happen until the first is canceled

I changed it to elseif event == "rednet_message" then


P.S. wanna be in nexus again?

#3 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 25 April 2012 - 02:38 AM

It didn't work?
But I get: "the second while true do will never happen until the first is canceled"
So attach all them together?
I GET IT!

And no.. Not nexus again. Head of OS Dev I was... Now im gone.

#4 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 25 April 2012 - 03:45 AM

http://pastebin.com/NxefAEXT
Help please! I fixed still not working!

#5 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 25 April 2012 - 04:23 AM

First off the edit feature is a nice thing to use on the forums..

Second try this, I just slightly changed the if logic and added in breaks to stop the loops prior to moving to the next function. Everything else looks correct.

Spoiler


#6 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 25 April 2012 - 12:13 PM

I see what you did there.. I'ma try.

#7 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 25 April 2012 - 12:18 PM

Ahh.. no it didn't work.

#8 OminousPenguin

  • Members
  • 93 posts

Posted 25 April 2012 - 12:41 PM

Edit: never mind





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users