About Store Forum Documentation Contact



Post Reply 
Updating RPG2 Player Controller
Author Message
Brad_Mclain Offline
Member

Post: #1
Updating RPG2 Player Controller
What I am looking to do is make adjustments to the player/camera controller to allow it up more steep slopes/staircases then what is currently possible.

I was wondering if someone can point me in the right directions in terms of the files and sections which need changing from the RPG2 sample code to make this happen.

Thanks in advance.
02-23-2011 10:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Dwight Offline
Member

Post: #2
RE: Updating RPG2 Player Controller
Something like this in Player.cpp (?):
Code:
    Flt max= DegToRad(450)*Time.d(),
        dx = Ms.d().x*1.7f,
        dy = Ms.d().y*1.7f;
   angle.x-= Mid(dx,-max,max);
   angle.y+= Mid(dy,-max,max);

SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
02-23-2011 12:22 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #3
RE: Updating RPG2 Player Controller
(02-23-2011 12:22 PM)Dwight Wrote:  Something like this in Player.cpp (?):
Code:
    Flt max= DegToRad(450)*Time.d(),
        dx = Ms.d().x*1.7f,
        dy = Ms.d().y*1.7f;
   angle.x-= Mid(dx,-max,max);
   angle.y+= Mid(dy,-max,max);

Thats the character itself and is not needed to change. What you are looking for is the Camera class in the RPG2 source.


~Dynad

There is always evil somewhere, you just have to look for it properly.
02-23-2011 01:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply