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 / Camera problem....

Author
Message
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 7th Nov 2003 20:53
I've included the code for a simple program I'm doing that's meant to move a ball round a mazr.

Pardon if this sounds silly but I've not been at this long.

I have the maze and ball being generated and I have the ball moving round the maze with the cursors.

The camera moves left and right ( utilising code from this very board ) but don't know how to get it to move up and dow.

Any help would be greatly appreciated.

Cheers.

Scottige.

Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 8th Nov 2003 02:21
i would just position the camera at the same y position as the object....

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 9th Nov 2003 18:04
Doh !
Cheers.

I'm quite adept at trying things the hard way and missing the obvoius.

Got it going fine now.

Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 12th Nov 2003 19:48
Dang, son as I started rotating the object ( it's a rolling ball ) it threw the movement out of whack with the move left/right/up/down 0.1 commands.

Rather obvious it was gonna happen thinking now.

Anyway could someome please help with commands to alter the x and y co-ords by 0.1/-0.1 please ?

If that's even possible ?

I only ever managed 1 at a time.

Cheers.

Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk
zao420
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 13th Nov 2003 00:34
Quote: "Dang, son as I started rotating the object ( it's a rolling ball ) it threw the movement out of whack with the move left/right/up/down 0.1 commands."


hmm maybe don't rotate the ball and use a scrolling texture to make it look like its rolling. then your movement commands should work.

Login to post a reply

Server time is: 2024-09-21 09:25:10
Your offset time is: 2024-09-21 09:25:10