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 Professional Discussion / A zelda-style camera control system?

Author
Message
Omega gamer 89
16
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 8th Jan 2008 16:37
The title says it all. I'm trying to come up with a good camera control system basically identical to the one from Ocarina of Time.

Any ideas? cause I have very little idea where to start

vist my site.
www.threeswordsproductions.com
NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 8th Jan 2008 17:27
I have one somewhere. I think I've given it out before on here.


Since the other one was scaring you guys so much...
Omega gamer 89
16
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 8th Jan 2008 18:33
cool, can you give me a link?or post the code as a downloadable word document?

vist my site.
www.threeswordsproductions.com
Omega gamer 89
16
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 8th Jan 2008 19:13 Edited at: 8th Jan 2008 19:14
I searched your forum posts, Nex, and I can't find it. Can you please post a link or the code or something?
NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 8th Jan 2008 19:41 Edited at: 8th Jan 2008 19:42
Threw this together in about ten minutes. It's a bit messy, but it works.


If you want lock on, tell me.


Since the other one was scaring you guys so much...
Omega gamer 89
16
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 8th Jan 2008 19:43
thanks,I'll try it soon.
Omega gamer 89
16
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 10th Jan 2008 16:36
Thank you! that works great!
NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 10th Jan 2008 17:09
You're welcome.


Since the other one was scaring you guys so much...
wind27382
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 14th Jan 2008 15:12
ok is their anyway I could get you to explain your code. such as what each variables effects it and such. so if we needed to write it ourselves we would know what it means.

wind
NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 14th Jan 2008 18:01



By putting a signpost in the middle of nowhere, you're making it somewhere.
danm36
16
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 15th Jan 2008 18:46
Would it be possible to add groundheight to that code?

I would like to learn how to code:

3rd person in the style of MGS, 1st/3rd person interchangeable modes in the style of MGS2
Omega gamer 89
16
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 5th Feb 2008 20:26
ok. Ive been trying to make the object that the camera follows (my main character model) play its walking animation when it moves. but no matter where in the code I put the PLAY OBJECT or LOOP OBJECT command, the animation wont play. The character definately has an animation to play, and it works anywhere outside this code. (See the code snippet above.)
So why doesnt it animate?

...but I am the ferret king!!!! BWAHAHAHAHAHAHA!!!! tremble before my ferret minions!

Mugen Wizardry
User Banned
Posted: 5th Feb 2008 22:51
@Omega gamer 89: Hi, Omega gamer 89! =) I'm not a DBPro genius, but from what I've learned about animations, I'd DEFINITELY recommend you buying the enhanced animations plugin, because not only does it allow 2 animations at once, it makes the animations move perfectly! =)

If you already have, or do happen to get enhanced animations, I can let you have a small demonstration of how my animation code works, so it works great for you every time you use it =)

Hope this helps! =)

Good Luck with your project! =)

~M.W~
Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 5th Feb 2008 23:29
Quote: "but no matter where in the code I put the PLAY OBJECT or LOOP OBJECT command, the animation wont play"

It sounds like you call the play/loop object command every loop, which resets the model to frame 0 every time. Thus, you see no animation.

You have to code a system that changes the loop animation only when it needs to. Personally I found the play/loop commands to be inadequate for the level of control you need in an RPG so I coded a timer based animation system that uses the 'Set object frame' command. You can blend animations if you animate your objects like this. I made a post in Code Snippets a while back about this.


Come see the WIP!
Omega gamer 89
16
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 6th Feb 2008 00:07
How much does the enhanced animation plugin cost? Can you give me a link?

...but I am the ferret king!!!! BWAHAHAHAHAHAHA!!!! tremble before my ferret minions!

Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 6th Feb 2008 00:09
The Enhanced Animations plugin will do a great deal of good for your game, but until you get this simple problem fixed you're dead in the water.


Come see the WIP!
Mugen Wizardry
User Banned
Posted: 6th Feb 2008 06:03
@Omega gamer: Trust me on this 1, if you want your animations 100% smooth, then the Enhanced Animations plugin is definitely for you! =)

Here's the link to purchase the plugin if you wish to do so:



Hope this helps! =)

Good Luck w/ your project! =)

~M.W~

Login to post a reply

Server time is: 2024-04-24 15:06:32
Your offset time is: 2024-04-24 15:06:32