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.

Newcomers DBPro Corner / new and..... dont know much

Author
Message
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 2nd Apr 2006 07:37
okay well... im new to the forums, not entirely new though, i understand simple ai using types and know how to make a sphere shoot, looking on some of the threads b4 i signed up i know about arrows and have a tiny idea of what types are. The thing is- i dont know anything about computers except using the programs. Sure i know what dlls are. All i know about ip is that its your network. No idea what its used for. And judging by how much other stuff my brother is talkin about, who built his own computer, im guessing that ip and dll isnt the only thing i need to know. Other stuff too

Ive been looking around and have decided to make a online game where a guy moves around and you equip weapons that... dont do nething. Later on i hope to make a animal system where there are maybe wolves, rabbits, plants and something that eats wolves, and a scavenger using a real time enviroment with some out of proportion things. After that instead of playing animation, using limb movements, after that a ragdoll, into a system where people can use ninja skills to fight, to better animals, to better graphics.... okay im going to far and i probably wont do that. Anyway i learn fast and have plenty of free time. Any help on getting me pointed in that direction? specificly- "onliningness", attaching the clothes and weapons, gravity and ragdoll effect, i know ragdoll and clothes are hard, or at least think so, i dont know

parrot
Twu Kai
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 2nd Apr 2006 12:17 Edited at: 2nd Apr 2006 12:17
Well, I personally don't know much about any multiplayer coding, but I think that you should start a little more basic.

I've heard that online is harder than doing it on a network, so I'd probably start with having a matrix, two spheres, one for each player, and just make a simple game where you move about. Then add to that etc.

Animation is probably easier than limbs to use, but you could try!

Hope I've helped.

I came, I saw, I programmed!
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 3rd Apr 2006 00:36
lol

parrot
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 3rd Apr 2006 00:37
actually i already know how to do that... i said ive been workin around. Heres a program except... it just shows up as a black screen and no matter how long i wait it doesnt send an error message.


sync on
sync rate 35
make object sphere 1,50
make matrix 2,100,100,10,10
position object 1,0,matrix position y(2)+10,0
dim enmy(10)
for e=3 to enmy
make object sphere e,10
color object E,RGB(255,100,50)
make object sphere e+10,1
position object e, rnd(100),0,rnd(100)
hide object e+10
next e
pointer=999
make object box pointer,10,10,20
dim state(enmy)
do
if upkey()=1 then move object 1,2
if downkey()=1 then move object 1,-2
if rightkey()=1 then turn object right 1,2
if leftkey()=1 then turn object left 1,2
if keystate(17)=1
make object sphere 500000,20
rotate object 500000,object angle x(pointer),object angle y(pointer),object angle z(pointer)
move object 500000,20
endif
if keystate(30)=1 then turn object left pointer,2
if keystate(32)=1 then turn object right pointer,2
if object angle y(pointer)>10
rotate object pointer,object angle x(pointer),10,object angle z(pointer)
endif
if object angle y(pointer)<-10
rotate object pointer,object angle x(pointer),10,object angle z(pointer)
endif
if object exist(500000)
xxx=object position x(500000)
yyy=object position y(500000)
zzz=object position z(500000)
endif
xx=object position x(1)
yy=object position y(1)
zz=object position z(1)
for e=3 to enmy
x=object position x(e)
y=object position y(e)
z=object position z(e)
pos=sqrt((x-xx)^2+(y-yy)^2+(z-zz)^2)
if object exist(500000)
pos2=sqrt((x-xxx)^2+(y-yyy)^2+(z-zzz)^2)
endif
if pos2<50
delete object e
delete object 500000
endif
position object e+10,x,y,z
point object e+10, xx-rnd(2)+rnd(2),yy,zz-rnd(2)+rnd(2)
if pos<300
state(e)=1
else
state(e)=2
endif
if state(e)=1
make object sphere e+20, 20
rotate object e+20,object angle x(e+10),object angle y(e+10),object angle z(e+10)
move object e+20,20
wait 10
endif
next e
loop
[/coed]

parrot
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 3rd Apr 2006 06:05
ne help?

parrot
BENOJ
18
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 3rd Apr 2006 22:17 Edited at: 3rd Apr 2006 22:39
erm im nto rrly sure what your trying to do in the code, i hope this helps:



what is the pointer supposed to be btw??

abit fatal1ty an8 sli mobo, ati radeon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)
BENOJ
18
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 3rd Apr 2006 22:35 Edited at: 3rd Apr 2006 22:37
<duplicate sorry>

abit fatal1ty an8 sli mobo, ati radeon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 4th Apr 2006 01:49 Edited at: 4th Apr 2006 01:51
you turned sync on but then never put a sync in the loop. The program is running it is just not going onto the screen.

Ofcourse then you have the problem of the camera being blocked immediatly, so I moved the camera up. I didn't know where you wanted the camera to be, but it was doing no good where it was.

Here is what I changed your code to...



By the way, when you press the w button an error comes up saying the object already exists. I thought you might want to fix that one on your own.

Insanity is just a state of mind
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 8th Apr 2006 00:01
o, i didnt put if there is no object. How do you do if object doesnt exist?

if object exist(object)=0?
i know in c++ you can use ! but......


Anyway back to the main question. i want to make a online roleplaying game thats modern and u build towns and stuff in this big empty plain. I know the basics of programming but online? huh?
i looked at the mmorpg programs post. where i saw...
Quote: "
Nonono your looking at this all wrong I asked you what mutliplayer system you intend on using!! Interal direct x multiplayer,winsock via multisync or some other plugin or peer to peer by one of the other dlls. Look at the examples read the descriptions and break down what each command does and what you need for your game. The basic idea is for a game to be created, and data exchanged when another connects. I cant explain in details if you dont tell me what multiplayer system your using."


isnt the point of multiplayer so that you dont have to use dll?

parrot
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 8th Apr 2006 00:58
allright i have alot of it down. Sorry for not giving an explenation but you move a cube around and if you get close to the turrets they fire at you and u shoot them. Here is my updated with more if object exist commands


some problems though- when you shoot, it goes away and is deleted after the position is lower than 400, but when you press w again camera moves to 0,0,0 and no ball is shot

parrot
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 9th Apr 2006 00:13
just testing to see something, on my other computer theres always an error message when i post, plz ignore this

parrot

Login to post a reply

Server time is: 2024-09-24 19:31:40
Your offset time is: 2024-09-24 19:31:40