Added Turbo

main 1.0
DodoBirb 5 years ago
parent 0e900f8d52
commit dc867c6bf0

@ -445,44 +445,34 @@ if platformCharacterIs(IN_AIR)
} }
if ((isCollisionBottom(1) || isCollisionPlatformBottom(1)) && platformCharacterIs(IN_AIR) && yVel >= 0) if ((isCollisionBottom(1) || isCollisionPlatformBottom(1)) && platformCharacterIs(IN_AIR) && yVel >= 0)
{ {
if (state == AIRBALL && ballfall >= 32) yVel = 0
yAcc = 0
landing = 1
turning = 0
vjump = 1
canturn = 1
walljumping = 0
if (state != AIRBALL && speedboost == 0)
{ {
yVel = -1.7 image_index = 0
dash = 0 state = STANDING
sfx_play(sndBallBounce) idle = 0
ballbounce = 8 statetime = 0
xVel = 0
xAcc = 0
PlayLandingSound(get_floor_material())
} }
else if (state == AIRBALL && sball == 0 && (!moverobj))
{ {
yVel = 0 state = BALL
yAcc = 0 statetime = 0
landing = 1 sfx_play(sndCrouch)
turning = 0 }
vjump = 1 if (speedboost == 1 && state != BALL)
canturn = 1 {
walljumping = 0 state = RUNNING
if (state != AIRBALL) statetime = 100
{ dash = 30
image_index = 0
state = STANDING
idle = 0
statetime = 0
xVel = 0
xAcc = 0
PlayLandingSound(get_floor_material())
}
if (state == AIRBALL && sball == 0 && (!moverobj))
{
state = BALL
statetime = 0
if (mockball == 0)
{
xVel = 0
xAcc = 0
dash = 0
}
sfx_play(sndCrouch)
}
} }
if (sball == 0) if (sball == 0)
{ {
@ -556,6 +546,12 @@ if ((isCollisionLeft(1) && xVel < 0) || (isCollisionRight(1) && xVel > 0))
if platformCharacterIs(IN_AIR) if platformCharacterIs(IN_AIR)
xAcc = 0 xAcc = 0
jumpfwd = 0 jumpfwd = 0
if (speedboost == 1 && vjump == 0 && platformCharacterIs(IN_AIR))
{
charge = 120
sfx_stop(sndSBChargeLoop)
sfx_loop(sndSBChargeLoop)
}
} }
if ((state == STANDING || state == DUCKING || state == RUNNING) && charge > 0 && ((inwater == 0 && waterfall == 0) || global.currentsuit == 2) && kJump && kJumpPushedSteps == 0 && kLeft == 0 && kRight == 0) if ((state == STANDING || state == DUCKING || state == RUNNING) && charge > 0 && ((inwater == 0 && waterfall == 0) || global.currentsuit == 2) && kJump && kJumpPushedSteps == 0 && kLeft == 0 && kRight == 0)
{ {
@ -878,6 +874,30 @@ if (state == SUPERJUMP)
yVel = -3.5 yVel = -3.5
facing = LEFT facing = LEFT
} }
if (kWalk > 0)
{
if (sjball == 0)
state = RUNNING
else
state = BALL
speedboost = 1
dash = 30
statetime = 100
sfx_stop(sndSJLoop)
if (sjdir == 0)
{
if (kLeft > 0)
{
xVel = -7.4
facing = LEFT
}
if (kRight > 0)
{
xVel = 7.4
facing = RIGHT
}
}
}
if ((sjdir != 0 && facing == RIGHT && isCollisionRightSlope(0)) || (facing == LEFT && isCollisionLeftSlope(0))) if ((sjdir != 0 && facing == RIGHT && isCollisionRightSlope(0)) || (facing == LEFT && isCollisionLeftSlope(0)))
{ {
yVel = 0 yVel = 0

@ -9,5 +9,7 @@ load_character_vars()
file_delete((((working_directory + "/TheHorde/random") + string((global.saveslot + 1))) + ".ini")) file_delete((((working_directory + "/TheHorde/random") + string((global.saveslot + 1))) + ".ini"))
file_delete((((working_directory + "/TheHorde/save") + string((global.saveslot + 1))) + ".dat")) file_delete((((working_directory + "/TheHorde/save") + string((global.saveslot + 1))) + ".dat"))
scr_newgame() scr_newgame()
global.item[7] = 1
global.speedbooster = 1
save_game(((working_directory + "/TheHorde/save") + string((global.saveslot + 1)))) save_game(((working_directory + "/TheHorde/save") + string((global.saveslot + 1))))
room_change(global.start_room, 0) room_change(global.start_room, 0)

Loading…
Cancel
Save