Ive been messing around with this in my spare time for about a week.
(blend file here, controls are arrow keys and enter key)
test.blend.zip (277 KB)
Im trying to create a game where the character is controlled on a grid based environment. he can only move in one of 4 direction based on camera alignment relative to the character up down left or right.
i wanted to be able to have complex level designs with turns and spherical surfaces so rather then just using an incremental movement system i have forced the character to snap to the location and rotation of the plane he is sitting on… giving the illusion of the character being locked to a grid but still being able walk on a curved looping paths (as seen in the attached blend file) which wouldn’t be possible with incremental movement.
the current issue im having is with the jump and double jump… the character should be able to hop one block high and one block in the direction he is facing… if in the air he can double jump to clear a one block gap and jump up an extra block higher or he can change the direction of his second jump mid air (as seen in the blend file)… the issue i am having is that this often isnt consistent… i have had to opt to use a dynamic physics motion setup up for jumps… this creates a jump arch i wanted but seems to have created another issue where the motion actuator is inconsistent in when it activates and creates instances where even though you double jumped you only go one block forward or if u had double jumped you go 3 blocks forward… so is there a way i can get a nice jump arch like physics provides and also have the character land constantly according to how man blocks he should be able to jump. i got most everything i want to be working as far as movement is concerned i just really need this to be accurate.
any suggestions to improve this setup would be appreciated. the blend file is really sloppy and messy because i have just been trying several ideas i have had to get things working… basically this blend file has been my doddle sheet… i will do everything over in a fresh blend file once ive figured out everything… appreciate any help and feed back. have a wonderful day!