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.

FPSC Classic Product Chat / Help with editing the FPSC source with DarkBasic Pro

Author
Message
MiRRoRMaN 64
22
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 14th May 2013 11:03
I've been messing around with the FPSC source and I'm trying to find a way to have an object stay in front of the camera for the easiest possible solution to have a third person sorta game.

I've tried about everything but I can't keep the object to stay in front of the camera when the camera turns around etc.

Help much appreciated, thank you in advance.

Cheers!
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 14th May 2013 11:18 Edited at: 14th May 2013 11:22
Third person seems to be a difficult thing to do well in FPSC.
I have been messing around with the "set camera to follow" command.

Try something similar to this:



EDIT: You might also want to use "disable object zdepth"

-TZK

MiRRoRMaN 64
22
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 14th May 2013 11:31
Thank you, but can you explain it to me just a little bit more? Because theres an awful lot of camera code in the FPSC source, like where in the main loop would I be looking exactly, to replace the camera statement?

I can get the hang of this, I've been studying and messing about with the source for days now.

Thank you very much in advance.
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 14th May 2013 11:42 Edited at: 14th May 2013 11:43
@MiRRoRMaN 64
I'd put this at the start of the source:


Then I would make an fpi command that does something like this:


Then I would add this to the main loop:


I would also edit the code that positions the camera so that it will only position the camera if thirdPersonActive is set to 0.

If you don't understand then feel free to let me know and I'll help you as much as I can.

-TZK

MiRRoRMaN 64
22
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 14th May 2013 11:48
pfew i do understand where you are going with this, but i haven't been really great with those fpi scripts. would it be like a piece of script i'd attach to an entity then? because I think that would work great.

I don't know if this forum has a private messaging system but perhaps it would be great if we could chat on skype or msn or something, or over the mail?

i just need to wrap my mind about it, i can get the hang of it i'm sure i can.
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 14th May 2013 11:50
@MiRRoRMaN 64
Quote: "would it be like a piece of script i'd attach to an entity then?"

Yep.

Quote: "I don't know if this forum has a private messaging system but perhaps it would be great if we could chat on skype or msn or something, or over the mail?"


eMail: bennyboy.private AT hotmail.com.au
Skype: bennyboy.m.12

-TZK

MiRRoRMaN 64
22
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 16th May 2013 03:38
Hi mods,

Feel free to close this tread if you want, I got it all working now.

Thank you all who helped!!!!

Login to post a reply

Server time is: 2026-07-03 05:00:10
Your offset time is: 2026-07-03 05:00:10