kimono
Well-known member
O_Ilusionista : Thanks onmovexscript was the correct script to make a boss like this and Bloodbane helped me much to set him
.
I'm currently trying to make a jukebox feature and wish to play the previous music when it's hit on the left side and the next music being hit on the right side:
Here's how the jukebox obstacle is set:
And here is the music tracklist:
Has anyone made something similar?
The demo for testing purpose:
https://drive.google.com/file/d/1TZNiSxX6Su46UZImyZZbWhryl9U-pTiC/view?usp=sharing
I'm currently trying to make a jukebox feature and wish to play the previous music when it's hit on the left side and the next music being hit on the right side:
Here's how the jukebox obstacle is set:
Code:
name jukebox
type obstacle
health 9999
nolife 1
nomove 1
type obstacle
speed 0
noquake 1
shadow 1
death 1
nodieblink 3
animationscript data/scripts/lescript.c
takedamagescript data/scripts/facingpain.c
anim idle
loop 1
delay 50
offset 34 64
bbox 4 0 54 64
platform -90 65 84 84 170 158 20 70
frame data/chars/obstacles/jukebox/jukebox_light1.png
frame data/chars/obstacles/jukebox/jukebox_light2.png
frame data/chars/obstacles/jukebox/jukebox_light1.png
frame data/chars/obstacles/jukebox/jukebox_light2.png
frame data/chars/obstacles/jukebox/jukebox_light1.png
frame data/chars/obstacles/jukebox/jukebox_light2.png
frame data/chars/obstacles/jukebox/jukebox_light3.png
frame data/chars/obstacles/jukebox/jukebox_light4.png
frame data/chars/obstacles/jukebox/jukebox_light3.png
frame data/chars/obstacles/jukebox/jukebox_light4.png
frame data/chars/obstacles/jukebox/jukebox_light3.png
frame data/chars/obstacles/jukebox/jukebox_light4.png
frame data/chars/obstacles/jukebox/jukebox_light5.png
frame data/chars/obstacles/jukebox/jukebox_light6.png
frame data/chars/obstacles/jukebox/jukebox_light5.png
frame data/chars/obstacles/jukebox/jukebox_light6.png
frame data/chars/obstacles/jukebox/jukebox_light5.png
frame data/chars/obstacles/jukebox/jukebox_light6.png
anim follow1
delay 4
offset 34 64
bbox 4 0 54 64
platform -90 65 84 84 170 158 20 70
@script
if(frame==0){
playmusic("Data/music/Tune_Level_1.ogg",0);
}
@end_script
frame data/chars/obstacles/jukebox/jukebox_vibration1.png
frame data/chars/obstacles/jukebox/jukebox_vibration2.png
frame data/chars/obstacles/jukebox/jukebox_vibration3.png
@cmd setidle getlocalvar("self") openborconstant("ANI_IDLE") 1
anim follow2
delay 4
offset 34 64
bbox 4 0 54 64
platform -90 65 84 84 170 158 20 70
@script
if(frame==0){
playmusic("Data/music/Tune_Level_0.ogg",0);
}
@end_script
frame data/chars/obstacles/jukebox/jukebox_vibration1.png
frame data/chars/obstacles/jukebox/jukebox_vibration2.png
frame data/chars/obstacles/jukebox/jukebox_vibration3.png
@cmd setidle getlocalvar("self") openborconstant("ANI_IDLE") 1
anim death
offset 34 64
bbox 4 0 54 64
platform -90 65 84 84 170 158 20 70
frame data/chars/obstacles/jukebox/jukebox_vibration2.png
delay 10
frame data/chars/misc/empty.gif
And here is the music tracklist:
Tune_Level_0.ogg
Tune_Level_1.ogg
Tune_Level_2.ogg
Tune_Level_3.ogg
Tune_Level_4.ogg
Tune_Level_4_bonus.ogg
Tune_Level_5.ogg
Tune_Level_6.ogg
Tune_Level_7.ogg
Tune_Level_8.ogg
Tune_Level_9.ogg
Has anyone made something similar?
The demo for testing purpose:
https://drive.google.com/file/d/1TZNiSxX6Su46UZImyZZbWhryl9U-pTiC/view?usp=sharing