How to code a single jump. (Unresolvable.)
|
|
cheatfreak25 | Date: Tuesday, 2011-05-24, 5:45 PM | Message # 1 |
Squire
Group: Users
Messages: 64
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
| I recently downloaded a new character that I really like (called Giant Crab) and I wanted to code him so he could do single jumps, but I dont know how. Any help? Here's the CNS file info of Velocity and Movement for him to help:
[Velocity] walk.fwd = 2.3 ;Walk forward walk.back = -2.2 ;Walk backward run.fwd = 4.6, 0 ;Run forward (x, y) - if y<0, player will hop run.back = -4.5,-3.8 ;Run backward (x, y) - if y=0, player will run jump.neu = 0,0 ;Neutral jumping velocity (x, y) jump.back = 0 ;Jump back Speed (x, y) jump.fwd = 0 ;Jump forward Speed (x, y) runjump.back = 0,0 ;Running jump speeds (opt) runjump.fwd = 0,0 ;. airjump.neu = 0,0 ;. airjump.back = 0,0 ;Air jump speeds (opt) airjump.fwd = 0,0 ;.
[Movement] airjump.num = 0 ;Number of air jumps allowed (opt) airjump.height = 35 ;Minimum distance from ground before you can air jump (opt) yaccel = .43 ;Vertical acceleration stand.friction = .85 ;Friction coefficient when standing crouch.friction = .82 ;Friction coefficient when crouching
Message edited by cheatfreak25 - Thursday, 2011-05-26, 4:09 PM |
|
| |
sgn_15 | Date: Tuesday, 2011-05-24, 6:14 PM | Message # 2 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| Quote (cheatfreak25) airjump.num = 0 ;Number of air jumps allowed (opt) doesnt that do the single jump already?
|
|
| |
Soma | Date: Tuesday, 2011-05-24, 6:43 PM | Message # 3 |
Squire
Group: Users
Messages: 70
Awards: 0
Reputation: 1
Reproofs: 20%
Status: Offline
| it should do only one jump or, if he has multiple ones, it's a built in code of the char
|
|
| |
cheatfreak25 | Date: Tuesday, 2011-05-24, 8:50 PM | Message # 4 |
Squire
Group: Users
Messages: 64
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
| Im not talking about air jumps. I mean like from standing to leaping. When I play as this character, no button I press makes him jump at all. I wanted to give him the ability to do one jump so I can mod him a little bit to be a boss character.
|
|
| |
sgn_15 | Date: Wednesday, 2011-05-25, 8:28 AM | Message # 5 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| well look for its jump codes. if theres none, try copying the jump codes of kfm and pasting over your char. thats the simplest attempt. if that doesnt work, you have to do more complicated things, some of which are beyond my knowledge
|
|
| |