Author |
Message |
AsianSensation
|
Posted: Wed May 07, 2003 9:47 pm Post subject: Relative motion(pretty challenging) |
|
|
I have been working on my final game, so far so good. However, there is one thing that's not working, the relative motion thing. Let me explain first, the game features 2 run windows, whatever a player do on one window, the other player should be able to see it if they are in range. So far, I can get the characters to see each other when they are moving.
The problem is that when firing the bazooka, I can't get the one player to see the projectile fired by the other player. Also, when one player is firing the weapons, the other player can't fire, so if there is anyway somebody could fix this problem for me, I would be very grateful.
If anyone needs to see the code, I will post it up later.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Catalyst
|
Posted: Wed May 07, 2003 9:50 pm Post subject: (No subject) |
|
|
to be of any help id prob need to see the code
|
|
|
|
|
|
AsianSensation
|
Posted: Wed May 07, 2003 10:05 pm Post subject: (No subject) |
|
|
Ok, here is the code, along with the pictures.
one note, for player one, which is Mario, WASD is used to move, and spacebar to shoot.
for player two, which is Peach, arrow keys are used to move, and 0 is used to shoot.
Description: |
|
Download |
Filename: |
split.zip |
Filesize: |
215.48 KB |
Downloaded: |
422 Time(s) |
|
|
|
|
|
|
Asok
|
Posted: Wed May 07, 2003 10:09 pm Post subject: (No subject) |
|
|
I haven't attempted anything like this before so I can't be much help, let me just say I think this is really cool and I'm looking forward to the finished one.
|
|
|
|
|
|
Catalyst
|
Posted: Wed May 07, 2003 10:35 pm Post subject: (No subject) |
|
|
i agree it very cool
i browsed your code and saw you never drew the bazooka in the other window
|
|
|
|
|
|
AsianSensation
|
Posted: Wed May 07, 2003 10:44 pm Post subject: (No subject) |
|
|
I try to draw it, but I can never get it to work, that's why I didn't include that part. I am hoping someone could help me with that part.
|
|
|
|
|
|
Catalyst
|
Posted: Wed May 07, 2003 10:51 pm Post subject: (No subject) |
|
|
when i looked at it i also tried drawing it but it never came....
|
|
|
|
|
|
Tony
|
Posted: Wed May 07, 2003 11:03 pm Post subject: (No subject) |
|
|
awesome idea 8)
as for not being able to fire both bazookas at same time...
the problem is that "charging" the bazooka is inside a loop and that prevents any other controls untill projectile is fired... have you tried moving while one player is charging his bazooka? well you cant
the solution as I see it is to charge bazooka one point at a time. Keep a flag that says that bazooka is charging and by house much... and when you press the fire key, it charges bazooka one more point then returns to check for other controls such as movement... I suppose this will also allow you to charge your weapon and run around at same time 8)
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
Homer_simpson
|
Posted: Wed May 07, 2003 11:03 pm Post subject: (No subject) |
|
|
If it's one thing i suck at(other than the other thing's i suck at... ) it's reading other people's code... i can barely even understand my own after 5 mins...
but i looked at yer program... i tried drawing the bazooka2 effect manually it doesn't draw for some so very odd reason... =/
and ONE MORE THING (AYAAAA.... as the chinese always say...) when i change the active window it seems to mess up the whole program... it's like frozen and you cant do nothing but to restart da program =(
|
|
|
|
|
|
hello
|
Posted: Thu May 08, 2003 10:26 am Post subject: ok Meng ur messed up |
|
|
meng why are u making fun of other people that need help
just because we are not as good in turing as u
does not mean u can just make fun of us
u were once that bad too
u cannot be better without practice and help form others
meng why do u take away our need for help
jeeezzz
u have no respect for those below u
|
|
|
|
|
|
hello
|
Posted: Thu May 08, 2003 10:26 am Post subject: I forgive u |
|
|
Meng i forgive u...
|
|
|
|
|
|
DaRkVyRuZ
|
Posted: Thu May 08, 2003 10:33 am Post subject: (No subject) |
|
|
anyone mind puttin the code on a page??
cuz i cant download the file with the schools security settings T_T
and by the look of the replies... it seems cool...
so if anyone got time.. pls help me out...
|
|
|
|
|
|
Prince
|
Posted: Thu May 08, 2003 10:35 am Post subject: (No subject) |
|
|
riigghhhh ... wtf r u talkin about now?
|
|
|
|
|
|
Tony
|
Posted: Thu May 08, 2003 10:37 am Post subject: (No subject) |
|
|
your school is pumped on drugs if they're installing a security to now allow you to download files...
Plz dont post source in the reply, it takes up huge amounts of bandwidth as the code esensially gets downloaded per every view
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Prince
|
Posted: Thu May 08, 2003 10:38 am Post subject: (No subject) |
|
|
our skool must b on drugs then cus we're locked out of jus about errythin... stupid milliken
|
|
|
|
|
|
|