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

Username:   Password: 
 RegisterRegister   
 Relative motion(pretty challenging)
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AsianSensation




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




PostPosted: Wed May 07, 2003 9:50 pm   Post subject: (No subject)

to be of any help id prob need to see the code
AsianSensation




PostPosted: 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.



split.zip
 Description:

Download
 Filename:  split.zip
 Filesize:  215.48 KB
 Downloaded:  225 Time(s)

Asok




PostPosted: 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




PostPosted: Wed May 07, 2003 10:35 pm   Post subject: (No subject)

i agree it very cool Very Happy
i browsed your code and saw you never drew the bazooka in the other window
AsianSensation




PostPosted: 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




PostPosted: 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




PostPosted: 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 Confused

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)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: 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... Rolling Eyes ) 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




PostPosted: 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




PostPosted: Thu May 08, 2003 10:26 am   Post subject: I forgive u

Meng i forgive u...
DaRkVyRuZ




PostPosted: 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...
Very Happy
Prince




PostPosted: Thu May 08, 2003 10:35 am   Post subject: (No subject)

riigghhhh Confused Confused... wtf r u talkin about now?
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Prince




PostPosted: 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 Evil or Very Mad
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 2  [ 25 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: