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 / FPS game, What Im doing wrong?

Author
Message
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 25th Aug 2007 00:40
I wonder what Im doing wrong, Im trying to do a FPS, I can make the gun appears and load the animations to walk, but it seems like backed I only see the bullet charger of the gun, if I try to rotate object the hand appears but when I try to move the hand disappears!

here is the code:


Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/
Ankillito
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 25th Aug 2007 10:06
we don't have you're media...

http://forum.thegamecreators.com/xt/xt_apollo_pic.php?i=1234759
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 25th Aug 2007 16:34
I cant upload the media

Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/
Penfold
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 25th Aug 2007 19:49
Tried to find out what was going on by using an object in place of HUD but all I could see was pure green (the object I used was green) asuming the hud was supposed to fill the whole screen, looks like italian maybe REM statements, which I can't read.

and the IF code around the updown left right arrows gives the same output ? but doesn't effect anything. so redundant code.

andando? what is this? a variable?

Reinicio=1
if Reinicio=1
Reinicio=0

pointless code its outside of a loop so Reinicio will always be 0

you have a couple of lines of code that mean if the mouse x movement is down then ay# is reduced and increased if mouse goes up.

Very confusing is there some code missing?

'Ooh 'eck chief'...'crumbs'
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 25th Aug 2007 20:08 Edited at: 25th Aug 2007 20:11
No the model its called HUD.x I don't know why, it comes with one of the models packs from FPS creator, its a hand holding a desert eagle, the code works pretty well (even the walk animation its show correctly )

[Dont put your attention in the pointless code I have been doing "experiments" trying to solve this so there are many pointless code

Andando 1 its to show the "walk animation"

This is my question

however the model its not placed correctly I only see the bullet charger of the gun(but the walk animation works perfect) , if try to use "rotation Object 1,270,0,0 the hand appears placer correctly but then when I move it disappears

Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/
Penfold
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 25th Aug 2007 20:26
I think your problem is you need to lock your object to your camera.

its like putting down a book in front of you then turning in your seat to look out the window.

Your book is no longer in front of you.

without the specific object + anim I have a hard job seeing exactly what is happening.
you could always upload an exe with the object imbeded.

'Ooh 'eck chief'...'crumbs'
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 25th Aug 2007 20:40
I think you are position it wrongly

also, scale object is percentagewise , scale 100,100,100 means it stays equal

Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 25th Aug 2007 20:54 Edited at: 25th Aug 2007 20:55
Quote: "I think your problem is you need to lock your object to your camera.
"


Yeah, actually thats my problem
I cant upload an exe, I created one and it doesn't work without the object (and I cant upload the object since the object is part of a model pack from TGC and thats piracy), I did some changes so its not the same code I put here, now I move the hand but the camera does not move.

I heard somewhere I need to attach the hand to a box or a object but I don't know how

Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/
Penfold
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 25th Aug 2007 21:11
Its not so much atach the hand to the box..

whichever object *is* moving needs to feed its x,y,z coords to the object that isn't.

So if your cam is moving you need to give its x,y,z + an amount so its in view to the object.

At this point I advise you to check out some of the stickied tutorials before someone else has to explain in detail.

needless to say you need to get the camera position and then position your object in realtion to this.

'Ooh 'eck chief'...'crumbs'
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 25th Aug 2007 22:04
Actually I was following some tutorials but I get lost because the tutorial was without any model just how to have a 1ยบ person view then I start to experiment with models by my self, however I will start everything from the beginning and then I will see what happens

Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 25th Aug 2007 22:50
@scorpyo:
I had re-seen your code spinet and I got it working, the hand its moving and its attached to the camera. Thats a great advance, thank you, But it still wrong rotated Now I can see the hand and the arm but it still backed



Now the hand its attached to the camera view (If I move the hand move too), now I need to solve the positioning and the rotation.

Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 25th Aug 2007 23:08 Edited at: 25th Aug 2007 23:10
EDIT: sorry..

Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/

Attachments

Login to view attachments
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 26th Aug 2007 02:27 Edited at: 26th Aug 2007 03:31
ok, fixed

but now everytime I look up with the mouse and press upkey at the same time my model fly away, I mean it still attached to the camera but its like use "Noclip" cheat in half life, I can fly

EDIT: Its like no gravity

How can I put the feet in the ground and stay there?

Thank you in advance





Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 26th Aug 2007 15:58
move object moves the object along the object x angle
if you change the x angle to other than zero, the object doesn't move parallel to ground anymore
Sopo the tocho
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 27th Aug 2007 03:27
Quote: "move object moves the object along the object x angle
if you change the x angle to other than zero, the object doesn't move parallel to ground anymore"


But then I can look up

Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon

http://www.freewebs.com/raycosantana/

Login to post a reply

Server time is: 2024-09-27 02:26:23
Your offset time is: 2024-09-27 02:26:23