Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / multiple player problem

Author
Message
Phantom Warrior86
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Canada eh
Posted: 5th Dec 2003 03:17
hi newb question here but i need help with the code for my 2 player 2d side scroller ive included the code im having problem with..


any help here would be hot

"he who laughs first always forgets easiest"
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 5th Dec 2003 04:51
WHat exactly are you havin problems with?

You need to be more specific in your questions.

Thanks.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 5th Dec 2003 05:04 Edited at: 5th Dec 2003 05:08
well he has awful organization (at least i think so)
i made it all on separate lines and you get


why not try this

why is everything so random in you other code? i just put all the textures together and all the ifs together.
just so you know, if you put a :, its just like pressing enter, it counts everything after the : as the next line. i dont know if what i did will change anything

=<=Pudgie Wars=>=
Game engine: 20% = Models: 25% = Textures: 1% = Sounds/Music: 0% = www.geocities.com/bigapple_entertainment
Travis
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: West Aust.
Posted: 5th Dec 2003 13:36
that would change the whole way the code works .... youd have to go:



as opposed to what you guys are saying...cause its a nested if statment not 2 seperate ones...unless im missing something, but u guys should be more carful cause its completely different code
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 5th Dec 2003 23:59
no, its not nested, if you want it to be nested the you would have to have:


if the code has the word then, then it isnt a nested if/then.

=<=Pudgie Wars=>=
Game engine: 20% = Models: 25% = Textures: 1% = Sounds/Music: 0% = www.geocities.com/bigapple_entertainment
Phantom Warrior86
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Canada eh
Posted: 6th Dec 2003 00:00
perhaps i could have been more clear the problem i get is that when i try to uses the a and d keys to move the second charactere the program gives me an error

"he who laughs first always forgets easiest"
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 6th Dec 2003 00:27
oh, i think iv got it


when you see a $, it means that it is a string, and what ever a string is equal to, must have "" around it, see in my code above

=<=Pudgie Wars=>=
Game engine: 20% = Models: 25% = Textures: 1% = Sounds/Music: 0% = www.geocities.com/bigapple_entertainment
Phantom Warrior86
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Canada eh
Posted: 6th Dec 2003 00:35
Thanks everyone darwin i got it fixed

"he who laughs first always forgets easiest"
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 6th Dec 2003 03:26
ok.

=<=Pudgie Wars=>=
Game engine: 20% = Models: 25% = Textures: 1% = Sounds/Music: 0% = www.geocities.com/bigapple_entertainment

Login to post a reply

Server time is: 2025-05-22 08:44:47
Your offset time is: 2025-05-22 08:44:47