Speedboost gfx

pull/116/head
sunsetbear 4 years ago
parent 44dfdb2ee4
commit b711397ad3

@ -3333,6 +3333,14 @@ if (state == SUPERJUMP && fxtimer == 0 && sjball == 1) {
myspark.additive = 1;
if (facing == LEFT && sjdir != 0) myspark.image_xscale = -1;
}
if (speedboostFXTimer > 0 && facing == RIGHT){
myspark = instance_create(x + 10, y - 12, oFXAnimSpark);
myspark.image_angle = 0;
}
if (speedboostFXTimer > 0 && facing == LEFT){
myspark = instance_create(x - 10, y - 12, oFXAnimSpark);
myspark.image_angle = 180;
}
if (state == RUNNING && speedboost && (fxtimer == 0 || fxtimer == 2 || fxtimer == 4)) myspark = instance_create(x, y - random(36), oSBSpark);
if (onfire && fxtimer == 0) {
if (mask_index == sMask1) {

@ -262,3 +262,4 @@ sidePressTimer = 0;
airStoredXvel = 0;
machball = 0;
slideCooldown = 0;
speedboostFXTimer = 0;

@ -638,6 +638,7 @@ if (global.speedbooster && speedboost == 0 && dash == 45) {
sjball = 0;
charge = 0;
sfx_play(sndSBSonicBoom);
speedboostFXTimer = 5;
alarm[2] = 30;
}
if (state == SJSTART) {
@ -2641,6 +2642,7 @@ if (vSpin > 0 && vjump == 0 && state == JUMPING){
if platformCharacterIs(IN_AIR) {
airStoredXvel = xVel;
}
if (speedboostFXTimer > 0) speedboostFXTimer -=1;
if (slideCooldown > 0) slideCooldown -= 1
if machball > 0 && state == BALL && (kRight > 0 || kLeft > 0){
if (airStoredXvel > 6 && kLeft > 0){

Loading…
Cancel
Save