carry0987 发表于 2015-4-9 04:54:17

求各位大神們,如何修改[超級跳躍]的距離或高度?

如題,求教學

代碼:
thread 'SUPER_JUMP'
31@ = 0

:SUPER_JUMP_26
wait 0
if
056D:   actor $PLAYER_ACTOR defined
else_jump @SUPER_JUMP_26
Player.InfiniteRun($PLAYER_CHAR) = True

:SUPER_JUMP_53
wait 0
31@ = 0
if and
   not Actor.Driving($PLAYER_ACTOR)
   not wasted_or_busted
else_jump @SUPER_JUMP_53
if or
   Actor.Animation($PLAYER_ACTOR) == "FALL_FALL"
   Actor.Animation($PLAYER_ACTOR) == "FALL_FRONT"
   Actor.Animation($PLAYER_ACTOR) == "FALL_BACK"
   Actor.Animation($PLAYER_ACTOR) == "FALL_GLIDE"
   Actor.Animation($PLAYER_ACTOR) == "JUMP_LAND"
else_jump @SUPER_JUMP_189
gosub @SUPER_JUMP_607
jump @SUPER_JUMP_53

:SUPER_JUMP_189
if or
   Actor.Animation($PLAYER_ACTOR) == "JUMP_LAUNCH"
   Actor.Animation($PLAYER_ACTOR) == "JUMP_LAUNCH_R"
   Actor.Animation($PLAYER_ACTOR) == "CLIMB_JUMP"
else_jump @SUPER_JUMP_53
if and
80E1:   not player 0 pressed_key 4
00E1:   player 0 pressed_key 14
else_jump @SUPER_JUMP_53
if or
00E1:   player 0 pressed_key 0
00E1:   player 0 pressed_key 1
else_jump @SUPER_JUMP_308
31@ = 1

:SUPER_JUMP_308
gosub @SUPER_JUMP_322
jump @SUPER_JUMP_53

:SUPER_JUMP_322
wait 0
30@ += 1
if or
30@ > 5
80E1:   not player 0 pressed_key 14
else_jump @SUPER_JUMP_322
if
30@ > 5
else_jump @SUPER_JUMP_1148
gosub @SUPER_JUMP_984
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 1
097A: play_audio_at -1000.0 -1000.0 -1000.0 event 1039
30@ = 15

:SUPER_JUMP_416
gosub @SUPER_JUMP_984
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 3@ 4@ 6@
wait 0
083D: get_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0@ 0@ 1@
30@ -= 1
if or
   not 30@ >= 0
   not 1@ == 0.0
else_jump @SUPER_JUMP_416
0494: get_joystick 0 direction_offset_to 9@ 11@ 11@ 11@
10@ = Actor.Angle($PLAYER_ACTOR)
30@ = 40

:SUPER_JUMP_521
wait 0
083D: get_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0@ 0@ 1@
30@ -= 1
if or
1@ == 0.0
   not 30@ >= 0
80E1:   not player 0 pressed_key 14
00E1:   player 0 pressed_key 16
00E1:   player 0 pressed_key 17
else_jump @SUPER_JUMP_853
30@ = 999
jump @SUPER_JUMP_622

:SUPER_JUMP_607
10@ = Actor.Angle($PLAYER_ACTOR)
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 1

:SUPER_JUMP_622
0A09: set_actor $PLAYER_ACTOR muted 1 // versionB
wait 0
083D: get_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0@ 0@ 1@
if and
84AD:   not actor $PLAYER_ACTOR in_water
   not 1@ == 0.0
else_jump @SUPER_JUMP_780
if and
   not Actor.Animation($PLAYER_ACTOR) == "KO_SKID_BACK"
   not Actor.Animation($PLAYER_ACTOR) == "FALL_SKYDIVE_DIE"
else_jump @SUPER_JUMP_740
gosub @SUPER_JUMP_888
jump @SUPER_JUMP_622

:SUPER_JUMP_740
0812: AS_actor $PLAYER_ACTOR perform_animation "FALL_COLLAPSE" IFP "PED" framedelta 20.0 loopA 0 lockX 1 lockY 0 lockF 0 time -1 // versionB

:SUPER_JUMP_780
wait 0
if and
   not Actor.Animation($PLAYER_ACTOR) == "KO_SKID_BACK"
   not Actor.Animation($PLAYER_ACTOR) == "FALL_SKYDIVE_DIE"
else_jump @SUPER_JUMP_740
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 0
0A09: set_actor $PLAYER_ACTOR muted 0 // versionB
return

:SUPER_JUMP_853
gosub @SUPER_JUMP_984
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 3@ 4@ 6@
gosub @SUPER_JUMP_888
jump @SUPER_JUMP_521

:SUPER_JUMP_888
0494: get_joystick 0 direction_offset_to 9@ 11@ 11@ 11@
if
9@ > 0
else_jump @SUPER_JUMP_939
10@ -= 1.3
jump @SUPER_JUMP_974

:SUPER_JUMP_939
if
   not 9@ >= 0
else_jump @SUPER_JUMP_974
10@ += 1.3
jump @SUPER_JUMP_974

:SUPER_JUMP_974
Actor.Angle($PLAYER_ACTOR) = 10@
return

:SUPER_JUMP_984
if
31@ == 0
else_jump @SUPER_JUMP_1048
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 10.0 0.0
6@ = 15.0
jump @SUPER_JUMP_1094

:SUPER_JUMP_1048
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 26.0 0.0
6@ = 6.5
jump @SUPER_JUMP_1094

:SUPER_JUMP_1094
04C4: store_coords_to 0@ 1@ 2@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 1
0063: 3@ -= 0@ // (float)
0063: 4@ -= 1@ // (float)
return

:SUPER_JUMP_1148
return

carry0987 发表于 2015-4-9 09:05:48

@NEST- @本間芽衣子丶 @naraku @雷岚 @kami 快來喔

奈落 发表于 2015-4-9 11:34:56

本帖最后由 naraku 于 2015-4-9 11:43 编辑

我记得我改忍者跳的时候有这样的句子
04C4: store_coords_to 0@ 1@ 2@ from_actor $PLAYER_ACTOR with_offset 0.0 6.0 0.0
04C4: store_coords_to 3@ 4@ 2@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
0063: 0@ -= 3@ // (float)
0063: 1@ -= 4@ // (float)
0006: 2@ = 0
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0@ 1@ 8.0
里面083C这条是控制人在天上移动的句子 上面几个变量的加减是说要移动的位置减去自身的位置等于当前在地图上坐标移动的位置(就是向前6米的位置,如果不用下面的浮数减法的话 那移动的方向就不会变)

超级跳 应该也是这样的吧里面移动的距离应该和 变量@0@1 @3@4@5有关

爱の契约 发表于 2015-4-9 12:20:23

不怎么精通代码Σ( ° △ °|||)︴抱歉{:7_196:}

NEST- 发表于 2015-4-9 12:27:38

{:5_124:}坐等大神详解,小白围观

那美好的记忆 发表于 2015-4-9 12:58:54

@kami

小羽丶 发表于 2015-4-9 16:57:00

我不是大神{:5_131:}

SONY 发表于 2015-4-9 19:00:13

改動作最快連cleo都不用{:7_190:}

carry0987 发表于 2015-4-9 19:39:35

naraku 发表于 2015-4-9 11:34
我记得我改忍者跳的时候有这样的句子
04C4: store_coords_to 0@ 1@ 2@ from_actor $PLAYER_ACTOR with_off ...

謝謝大神人

carry0987 发表于 2015-4-9 19:40:39

Simulator 发表于 2015-4-9 19:00
改動作最快連cleo都不用

可是我動作不如cleo好啊

FREESHOW 发表于 2015-4-10 00:37:38

      路过看看
页: [1]
查看完整版本: 求各位大神們,如何修改[超級跳躍]的距離或高度?