First of all, sorry to bump this - I know this is a couple of months old. I really like your code here, but I'm having some problems with it. All I have done so far is try to add 2 more "floor" blocks for "theColonel" to jump on. After he jumps on to the first one that I added (which is below the upper floor you add), he can no longer jump until he moves off of that floor on to another one. The second floor I added is higher, and I can't even get to it because of the problem with the first floor. What do you think the problem would be?
Here is my code for the setupscene() part (since that's the only part I changed)-
Color Backdrop rgb(0,0,0)
Ink rgb(100, 200, 50), 0
Make Object Box 3, 500, 10, 500 //This is the box representing the upper floor
Make Object Box 4, 500, 10, 500 //This is the box representing the lower flor
Make Object Box 5, 500, 10, 500 //This is the box representing the upper floor
Make Object Box 6, 500, 10, 500 //This is the box representing the upper floor
Position Object 4, -300, -150, 0 //Position the lower floor so we can jump down onto it
Position Object 5, -300, 50, -200 //Position the lower floor so we can jump down onto it
Position Object 6, -400, 100, -400 //Position the lower floor so we can jump down onto it
Phy Make Rigid Body Static Box 3 //Now, make them static rigid bodies, we don't
Phy Make Rigid Body Static Box 4: // want the floor falling beneath us
Phy Make Rigid Body Static Box 5: // want the floor falling beneath us
Phy Make Rigid Body Static Box 6: // want the floor falling beneath us
make object box theColonel, 50, 100, 50
remstart make object cone theColonel, 75
xrotate object theColonel, 90
fix object pivot theColonelremend
Position Object theColonel, 0, 500, 0
x# = Object Position X(theColonel)
y# = Object Position Y(theColonel)
z# = Object Position Z(theColonel)
yscl# = Object Size Y(theColonel) //Need these size values for creating the character controller
xscl# = Object Size X(theColonel)
zscl# = Object Size Z(theColonel)
//When making the character controller box or capsule, I had to play around a bit to
//find good values for the sizes. Object Size <X|Y|Z>() / 2.0 seems to work well.
if gravType = BOX_CC
Phy Make Box Character Controller theColonel, x#, y#, z#, xscl#/2, yscl#/2, zscl#/2, 1, 1.5, 45.0
else:if gravType = CAPSULE_CC
Phy Make Capsule Character Controller theColonel, x#, y#, z#, xscl#/2, yscl#/2, 1, 0.1, 3.0
endif:endif
Position Camera 0, 100, -500
endfunction
Any ideas?
PS : Sorry if that was confusing - I'm tired