Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Something really funny is going on...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kaida




PostPosted: Sun Jan 16, 2005 9:04 pm   Post subject: Something really funny is going on...

Okay, here's what's going on: my program is like a shooting game, where you kinda poke at balls with a 'shooter', which is in fact just a line. Basically, there are supposed to be red balls and blue balls; I haven't done the blue balls yet, but the red balls are there; if you hit a red ball, then you die. The game has 5 levels; so far, I only have level 1, so if I get level 1 working, then all the other levels will work too. So the thing is, once you hit a red ball, it opens a window saying "Game Over" and it's SUPPOSED to go back to a screen with a button saying "level 1", but it doesn't seem to work. It displays a WidgetModule thingy that says something about the colour exceeding 256, yet I have done no such freaking thing. Okay, it's probably really confuzzling but I hope someone can shine a little light on it. ^^;

If you look at the code, then maybe you'll see the problem. Try losing. ^^



prototype1[1].t
 Description:
The program with the problem...

Download
 Filename:  prototype1[1].t
 Filesize:  7.38 KB
 Downloaded:  143 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Neo




PostPosted: Sun Jan 16, 2005 9:29 pm   Post subject: (No subject)

Your poblem is line 259
code:

GUI.SetColor (level1btn, 60)

Comment it out and it should work. I don't know why though because I know nothing about turings GUI. Perhaps turing cant tolerate too much florescent colours. Confused
kaida




PostPosted: Mon Jan 17, 2005 5:58 pm   Post subject: Something else doesn't works

Thanks Neo, it worked...however, once it did work, the level 1 button didn't work. I was wondering why it didn't go back to the game, so I pressed a random key...and then the game started all over again, in the same screen, and you can actually erase the button and the title and everything. Which I don't fully understand. Look at the file and you'll know. I would SO SO SO SO appreciate it if anyone can try fixing it. I have a feeling it has to do with the loop, but I'm not sure how to manipulate the loop. Please help!!!! Smile


prototype1[1][1].t
 Description:
This is the program which has the problem; I suspect the loop, but I don't know how to treat it

Download
 Filename:  prototype1[1][1].t
 Filesize:  7.4 KB
 Downloaded:  120 Time(s)

Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: