Posted 24 April 2012 - 09:01 PM
I am making a gmae for Noodle-SH but I need help for multiplayer.
I have a sprite which is "o" (soon to be changed).
I need to be able to draw a new sprite when someone connects to an ID of the computer.
Example:
I have a sprite which is "o" (soon to be changed).
I need to be able to draw a new sprite when someone connects to an ID of the computer.
Example:
term.clear()
term.setCursorPos(1,1)
local currentX = 25
local currentY = 9
local sprite = "o"
write "Type the id you would like to join: "
local c = read()
-- Now for the movements
if event == key and key == "w" -- ik.. the id's, but im at school
currentY = currentY - 1
rednet.send(c, "up")
end
-- Receive code
id, msg = rednet.receive()
if id == c and msg == "up" then -- THE C IS ALSO ON THE OTHER COMPUTER TO JOIN SOMEONE ELSE IP - IP (Connecting)
(OtherOBJECT) currentY = (OtherOBJECT) currentY - 1
end