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 / Advanced Movement Code

Author
Message
dark basic code
14
Years of Service
User Offline
Joined: 26th Jan 2010
Location: US
Posted: 23rd Mar 2012 14:59
Ive been woring on a light RPG for a project in school, and i cannot get my run code to coperate with my movement code.

when the code is exicuted, i have camera and movement lock,



any assistance would be apreciated.

everything is being restored to its rightful place, Including the true power of the sharingan. the true power of I Madara Uchiha!
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 24th Mar 2012 07:50
I take it that vx#, vy# and vz# are variables that hold the x, y and z position of the player character. Instead of moving the camera independently, why not look at the player's position and place the camera accordingly? You could also use the SET CAMERA TO OBJECT ORIENTATION command or even the SET CAMERA TO FOLLOW command.

There are other options available for movement of objects. You could simply use MOVE OBJECT or the NewXvalue, NewYvalue and newZvalue commands.

So many games to code.......so little time.

dark basic code
14
Years of Service
User Offline
Joined: 26th Jan 2010
Location: US
Posted: 26th Mar 2012 15:38
Ah, thank you. ill try your suggestion.

i phrased it a bit poorly earlyer.

its a compleat control lockout. and the code works fine without

[/code] if keystate(17) = 1 `rkey
if keystate(RKEY) = 1
move camera playermovespeed#
else
move camera iniplayermovespeed#
endif
endif[code]

everything is being restored to its rightful place, Including the true power of the sharingan. the true power of I Madara Uchiha!

Login to post a reply

Server time is: 2024-11-23 20:47:45
Your offset time is: 2024-11-23 20:47:45