Game Development Community

Modifying Player Movement

by Alex Dickerson · in TGB Platformer Kit · 03/25/2012 (1:22 pm) · 1 replies

Hey everybody, had a general question about the PSK.

I wanted to modify the player's movement, and have scoped around to find where to implement such changes, but can't seem to find it.

I thought the ActorBehavior.cs in the Legacy folder was the key, as the code contained therein was exactly what I was looking for, but making changes to the file results in nothing in the actual game.

This has been a hump that we need to get past, and we've been trying for the better side of six hours!

Anyone who can help or point me in the right direction would be greatly appreciated.


#1
03/25/2012 (8:05 pm)
Behaviors/ControllerBehavior.cs

you are going to use a combination of that and playermethods.cs to modify player movement. for instance I bound a key to my sprint function in controllerbehavior.cs .. put my actual sprint function in player methods and used the key down and key up functions in controllerbehavior.cs to modify the movement code on move left and move right ect.