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

Username:   Password: 
 RegisterRegister   
 Multi-Tasking
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Blade




PostPosted: 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..
Sponsor
Sponsor
Sponsor
sponsor
Asok




PostPosted: Thu Apr 10, 2003 12:35 pm   Post subject: (No subject)

just have everything in the same loop.
Tony




PostPosted: Thu Apr 10, 2003 1:51 pm   Post subject: (No 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Blade




PostPosted: Thu Apr 10, 2003 2:43 pm   Post subject: (No 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
Catalyst




PostPosted: Thu Apr 10, 2003 2:45 pm   Post subject: (No subject)

classes work very well for organization
Blade




PostPosted: Thu Apr 10, 2003 2:59 pm   Post subject: (No subject)

whats a class?
Catalyst




PostPosted: Thu Apr 10, 2003 3:07 pm   Post subject: (No subject)

check tutorials i made one couple of min ago
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  [ 7 Posts ]
Jump to:   


Style:  
Search: