Computer Science Canada

Multi-Tasking

Author:  Blade [ Thu Apr 10, 2003 11:45 am ]
Post subject:  Multi-Tasking

is there anyway i can get different things to run at the same time without using a process?

i am creating a game that involves a guy moving, and shooting a gun with a boss-like character moving around at the same time, and attacking back at the guy.

if i use a process the processing of the game will lag pretty badly, and it will be almost as if he isnt moving anyways..

Author:  Asok [ Thu Apr 10, 2003 12:35 pm ]
Post subject: 

just have everything in the same loop.

Author:  Tony [ Thu Apr 10, 2003 1:51 pm ]
Post subject: 

Asok is right. Having everything in the same loop would make more sence.

also if you program in v4, you can have View.Update at the end of the loop, so that all graphics are updated only when the whole loop is run through. This way it wouldnt lag as much.

Author:  Blade [ Thu Apr 10, 2003 2:43 pm ]
Post subject: 

yea, i wasn't really thinking about it that way, i was thinking along the lines of how i can keep the code organized and run well at the same time. lol

Author:  Catalyst [ Thu Apr 10, 2003 2:45 pm ]
Post subject: 

classes work very well for organization

Author:  Blade [ Thu Apr 10, 2003 2:59 pm ]
Post subject: 

whats a class?

Author:  Catalyst [ Thu Apr 10, 2003 3:07 pm ]
Post subject: 

check tutorials i made one couple of min ago


: