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

Username:   Password: 
 RegisterRegister   
 Help, accidently used process!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DifinityRJ




PostPosted: Thu Dec 07, 2006 5:23 pm   Post subject: Help, accidently used process!

Hi, im in gr.10 and i made a game, i used Bubble Bobble sprites, and i used processes without knowing they aren't good to use in programs , and i tried to convert to procedure without ruining my game , but i don't know how to....
Here it is..



Bubblegame.rar
 Description:

Download
 Filename:  Bubblegame.rar
 Filesize:  17.5 KB
 Downloaded:  68 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
uberwalla




PostPosted: Thu Dec 07, 2006 7:32 pm   Post subject: (No subject)

all u got to do is take away the ss' in process and add 'dure' then take away "fork" and just call the name of the procedure where needed and it should run.
DifinityRJ




PostPosted: Thu Dec 07, 2006 8:38 pm   Post subject: (No subject)

It doesn't work , whenever i press space or enter, it jus slows down and doesn't shoot anything.
neufelni




PostPosted: Thu Dec 07, 2006 8:54 pm   Post subject: (No subject)

I didn't look at your code, but the problem is likely that you didn't call the procedures in your main loop.
DifinityRJ




PostPosted: Thu Dec 07, 2006 10:04 pm   Post subject: (No subject)

i did something like
procedure explosion
blah blah blah
blah blah
end explosion

blah
blah
var
var
Main loop here
blah
blah


if explosion_check = 1 then
explosion ( i called on the procedure here)
end if




end loop
uberwalla




PostPosted: Thu Dec 07, 2006 10:08 pm   Post subject: (No subject)

ok well if you could post your code in winzip i could take a look because i dont got winrar cuz frankly i think its gay. i prefer conpressed zip//winzip because they are the most commonly used.
Clayton




PostPosted: Thu Dec 07, 2006 10:31 pm   Post subject: (No subject)

WinRAR is by far superior to WinZIP, WinRAR also allows you to uncompress far more compression types (WinZIP included), so why don't you take the time to download WinRAR and stop whining.
TheFerret




PostPosted: Fri Dec 08, 2006 12:05 am   Post subject: (No subject)

uberwalla wrote:
ok well if you could post your code in winzip i could take a look because i dont got winrar cuz frankly i think its gay. i prefer conpressed zip//winzip because they are the most commonly used.


Pleas think before you post stuff on the Internet, you could be potentially offending the gay population of the board by saying that...

On topic, WinRar is a lot better than winzip since you can compress the data a lot more and also split the final files into predetermined file sizes, so .RAR is better than .ZIP...
Sponsor
Sponsor
Sponsor
sponsor
rdrake




PostPosted: Fri Dec 08, 2006 12:07 am   Post subject: (No subject)

Silly children, 7-Zip is the only way to go. It handles almost anything you throw at it, and it runs on things other than Winders.
md




PostPosted: Fri Dec 08, 2006 12:10 am   Post subject: (No subject)

You're all nuts! tar and bzip2 are where it's at; or even tar and gzip! None of these crappy GUIs for a true computer... person...

/me goes back to his *nix
TokenHerbz




PostPosted: Fri Dec 08, 2006 3:31 am   Post subject: (No subject)

WinRar is mostly used imo, i use it the most anyways..

winzip is leh crappeh!
Cervantes




PostPosted: Fri Dec 08, 2006 10:22 am   Post subject: (No subject)

Enough. This is not a discussion on compression formats.

uberwalla wrote:
all u got to do is take away the ss' in process and add 'dure' then take away "fork" and just call the name of the procedure where needed and it should run.

No. Most of the time, this will not work. Why? Because usually a process is coded with the expectation that it runs alongside the main program. So my process might step through a loop forever as it draws stuff. The main program will continue to run, and my process will draw. (Note that this is terrible code.) Now if I change that process to a procedure and call the procedure within my main program, the loop in the procedure will execute forever and my main program will not execute. See the problem?

Instead, you need to take the idea from the process and inline it directly into your main program. This could be done with a procedure, but it means more than simply copying the body of the process into a procedure.
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  [ 12 Posts ]
Jump to:   


Style:  
Search: