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

Username:   Password: 
 RegisterRegister   
 I swar my proc's are broken sometimes. I need some help please.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
iRobsta




PostPosted: Tue May 25, 2010 1:40 pm   Post subject: I swar my proc's are broken sometimes. I need some help please.

What is it you are trying to achieve?
I have my tittle screen working. I run it, it does what it's supost to do, then i hit the start button. It clear's everything like it's suppost to and then I want to run my porcedure, being my enemy.


What is the problem you are having?
He won't show. I know he works but he won't put up. It's like he's not even in the code.


Describe what you have tried to solve this problem
I've tried using a procsess's and loops. nothing I try works.


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
I uploaded my game with picture so you can run it and see for yourself. I don't know what more else to say.

Please specify what version of Turing you are using
4.1.1



MarioBounce.rar
 Description:

Download
 Filename:  MarioBounce.rar
 Filesize:  1.56 MB
 Downloaded:  244 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
TerranceN




PostPosted: Tue May 25, 2010 3:15 pm   Post subject: RE:I swar my proc\'s are broken sometimes. I need some help please.

This happens because this:

Turing:
loop
    exit when GUI.ProcessEvent
end loop


is an infinite loop (for all intents and purposes). I am going to guess you are only using the GUI module for the first button. If so then you could either make a boolean value toggle when mushpress is called, and exit when that value is changed, or create your own code to handle the situation. You could make your own button, or simply use Input.Pause(). Hope that helps.
iRobsta




PostPosted: Tue May 25, 2010 4:47 pm   Post subject: Re: I swar my proc's are broken sometimes. I need some help please.

yup. thank you. Alot !!!

All your methods worked, I decided to go with boolean. Greatly thanked. (:
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: