Author |
Message |
Blade
|
Posted: 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
|
|
|
Asok
|
Posted: Thu Apr 10, 2003 12:35 pm Post subject: (No subject) |
|
|
just have everything in the same loop. |
|
|
|
|
|
Tony
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Blade
|
Posted: 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
|
Posted: Thu Apr 10, 2003 2:45 pm Post subject: (No subject) |
|
|
classes work very well for organization |
|
|
|
|
|
Blade
|
Posted: Thu Apr 10, 2003 2:59 pm Post subject: (No subject) |
|
|
whats a class? |
|
|
|
|
|
Catalyst
|
Posted: Thu Apr 10, 2003 3:07 pm Post subject: (No subject) |
|
|
check tutorials i made one couple of min ago |
|
|
|
|
|
|