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 / Moving camera up,down,left and right

Author
Message
mnemonic
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 17th Mar 2010 15:26
I have tried to find a command for moving the camera up,down,left and right, but can't find it.

I want my camera to face in the Z direction (depth) then I want to be able to move it along the Y and X axis's using the arrowkeys without refacing it in another direction.

I have been looking at the move camera command, but that will only move the camera in the direction it's facing.

Anyone who can help me with this?
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 17th Mar 2010 19:05
I write something simple for you try it and tell me if this is the effect you wanted.I imagine that you are making some side roller like supermario or something, but in 3D.I would use camera like this for exactly same thing.



Because i have some free time now i did it for you but read the code and try to imagine it in your head as it`s you that writed it.It`s really not that hard at all to do it yourself.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
jfroco
14
Years of Service
User Offline
Joined: 1st Dec 2009
Location: Chile
Posted: 18th Mar 2010 04:25
Hello mnemonic,

Check the Matrix1Utils plugin 09 http://www.matrix1.demon.co.uk/Matrix1Utils_Help/Matrix1Util_09_index.html

Commands:

MOVE CAMERA DOWN
MOVE CAMERA LEFT
MOVE CAMERA RIGHT
MOVE CAMERA UP

Download here: http://forum.thegamecreators.com/?m=forum_view&t=85209&b=18

Best regards

JF
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 18th Mar 2010 18:00
Both ways do the same.Good job, jfroco.Your sugesstion suppose less skills.And eventually he will need matrix plugin one day.

Same code with matrix plugin commands:



Where there is a will, there is a way.
I often edit my posts, that`s who i am
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 18th Mar 2010 20:39
There's also a third way, but I'm not suggesting it's better than the other methods given.

To move the camera left, simply rotate it 90º, use the Move command to move it the required distance then rotate it 90º back in the opposite direction.

If this is done before the Sync command you won't see it happen on-screen.

TDK

Login to post a reply

Server time is: 2024-11-16 12:17:19
Your offset time is: 2024-11-16 12:17:19