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.

Dark GDK .NET / Not allowing the camera to go up high ledges

Author
Message
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 5th Jul 2009 05:59
i have like a maze set up, using a height map that i made, and i only want the camera to go on the low bits. therefore not allow it to go up the sides of the maze that are very high.

Can anyone help, thanks

Young Coder as work(VB)
Hayer
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 5th Jul 2009 14:15
okey, just some pseudo-code

if camera.position.y > maze.maxheigt
camera.position.y = maze.maxheight
endif

just as easy as that?

Keep it simple.
Questions? Mail me
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 9th Jul 2009 07:57
thanks, but if it has gone onto the top of the maze, and you bring it back down wont it be inside the walls

Login to post a reply

Server time is: 2024-03-28 16:15:57
Your offset time is: 2024-03-28 16:15:57