Python and shizzzzz...

Things "apparently" exist out side of minecraft. Yeah, we know, what?

Moderators: Fabeth, Korthic, Nicolu, caldrin, Explodingboxes

Post Reply
User avatar
Xeronaile
Staff
Posts: 868
Joined: Mon Jun 13, 2011 9:42 pm

Python and shizzzzz...

Post by Xeronaile »

So recently Squidy has been trying out what seems to be the easiest programming language to learn, Python. I was wondering if any of you were experienced with this stuff and could maybe assist me in something. Currently I'm trying to build an "Avoid the mouse game", and I'm not quite sure on how to link the pictures to move with the text, for instance, if I was using raw_input, how would I make yes light up once I click it on the screen, or type it in for the Raw Input.

choice = raw_input("Y/N"
if choice == "Y":
(Once I type it in, Yes is highlighted on the picture, and then it changes to the next pic)

So basically, I'm wondering how would I transition from picture to picture with that line of code, and one more thing that may be of help is how to delay text showing up on the screen.

I tried time.sleep(1) on which I saw in a python video guide, and it just came up with an error when I ran the module.

For those of you guys who played on the tekkit server, you would know that in the CC Terminals, sleep(1) would pause the text from showing up for one second or more, would there be a code for that in python?


s q u i d z
Game Server IP: play.minecraftjunkie.com Mumble Server: talk.minecraftjunkie.com Port: 31202
Image
Post Reply