epikhbk1
Full Member
Today's Friend is tomorrows foe.
Posts: 190
|
Post by epikhbk1 on Apr 11, 2012 22:04:21 GMT -5
ok so i coded a boost in my source code and its all great buut he defies gravity meaning if he dosent touch the ground he floats and when i let the boost button go then falls(if in air)if it helps heres my code:
Function Player_Action_Crouch(p.tPlayer, d.tDeltaTime) p\Motion\Speed\x# = Sin(p\Animation\Direction#)*1 p\Motion\Speed\y# = 0 p\Motion\Speed\z# = -Cos(p\Animation\Direction#)*1
If (Input\Hold\ActionB = True) Then p\Animation\Animation = 2 p\Motion\Speed\x# = Sin (p\Animation\Direction#)*4 p\Motion\Speed\y# = 0 p\Motion\Speed\z# = -Cos (p\Animation\Direction#)*4 End If
If (Not Input\Hold\ActionB) Then p\Action = ACTION_Jump End Function
any help?
|
|
|
Post by zankuujinmujinsho on Apr 11, 2012 22:36:50 GMT -5
If (Not Input\Hold\ActionB) Then p\Action = ACTION_Jump
^I feel like the ACTION_JUMP should be ACTION_COMMON
|
|
|
Post by 06hypersonic60 on Apr 12, 2012 1:32:18 GMT -5
and remove the p\motion\speedY = 0
|
|
epikhbk1
Full Member
Today's Friend is tomorrows foe.
Posts: 190
|
Post by epikhbk1 on Apr 12, 2012 9:31:12 GMT -5
ok ill give it a shot thanks bros!
|
|
epikhbk1
Full Member
Today's Friend is tomorrows foe.
Posts: 190
|
Post by epikhbk1 on Apr 12, 2012 10:40:22 GMT -5
yeah it wrked
|
|