9 posts
Posted 22 January 2013 - 04:17 AM
I want to make a game.
when someone pull a lever the signal wil go to the computer and the screen will say capture point
and when its not pulled it will say nothing
but how???
14 posts
Posted 22 January 2013 - 05:05 AM
I want to make a game.
when someone pull a lever the signal wil go to the computer and the screen will say capture point
and when its not pulled it will say nothing
but how???
This should be moved to the Ask a Pro section.– But read up on the wiki about redstone.getInput() and os.pullEvent()
8543 posts
Posted 22 January 2013 - 07:03 AM
Moved to Ask a Pro.
2005 posts
Posted 22 January 2013 - 08:41 AM
while true do
os.pullEvent("redstone")
term.clear()
if rs.getInput("right") then
print("Capture Point!")
end
end
Super basic, if a redstone change happens, clear the screen and check for redstone input on the right side of the computer. If so, print("Capture Point!").
9 posts
Posted 26 January 2013 - 11:42 PM
Thanks
9 posts
Posted 26 January 2013 - 11:49 PM
It work thanks :D/>