Skip to content

Commit

Permalink
splash screen end and begin screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Jan 27, 2019
1 parent 7c82c63 commit c6f2e7e
Show file tree
Hide file tree
Showing 32 changed files with 687 additions and 12 deletions.
Binary file added AudioCache/au000002.mp3
Binary file not shown.
2 changes: 1 addition & 1 deletion BoneController.asc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Character * whichBoneCollidesDog(){


void on_event (EventType event, int data){
if(event == eEventLeaveRoom){
if(event == eEventLeaveRoom || event == eEventEnterRoomBeforeFadein){
ForceTrashBones();
}
}
63 changes: 63 additions & 0 deletions CustomTransition.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// new module script
Timer * tVisibleFalseAfter;

void CustomTransition_IntantFadeIn(){
gBloodTransition.Visible = false;
gBloodTransition.Transparency = 100;
gCustomTransition.Visible = false;
gCustomTransition.Transparency = 100;
}

void CustomTransition_IntantFadeOut(){
gBloodTransition.Visible = false;
gBloodTransition.Transparency = 100;
gCustomTransition.Visible = true;
gCustomTransition.Transparency = 0;
}

void CustomTransition_FadeIn(float ftime , TweenStyle blocking, float delay){
if(FloatToInt(ftime) == 0){
ftime = 0.3;
}
if (!Game.SkippingCutscene){
gBloodTransition.Transparency = 100;
gBloodTransition.Visible = false;
gCustomTransition.Transparency = 0;
gCustomTransition.Visible = true;
tVisibleFalseAfter = Timer.StartRT(ftime+delay, eOnce);
gCustomTransition.TweenTransparency(ftime, 100, eEaseLinearTween, blocking, delay);
} else {
CustomTransition_IntantFadeIn();
}

}

void CustomTransition_FadeOut(float ftime , TweenStyle blocking, float delay){
if(FloatToInt(ftime) == 0){
ftime = 0.3;
}
if (!Game.SkippingCutscene){
gBloodTransition.Transparency = 0;
gBloodTransition.Visible = true;
gBloodTransition.X = 0;
gBloodTransition.Y = -800;
gCustomTransition.Transparency = 100;
gCustomTransition.Visible = true;
gBloodTransition.TweenY(ftime/2.0, 0, eEaseLinearTween, blocking, delay);
gCustomTransition.TweenTransparency(ftime/2.0, 0, eEaseLinearTween, blocking);
} else {
CustomTransition_IntantFadeOut();
}
}
function repeatedly_execute_always() {
if(IsGamePaused() == 1 || !System.HasInputFocus){
return;
}

if(tVisibleFalseAfter!=null){
if(tVisibleFalseAfter.EvtExpired){
tVisibleFalseAfter=null;
gCustomTransition.Visible = false;
}
}
}
5 changes: 5 additions & 0 deletions CustomTransition.ash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// new module header
import void CustomTransition_FadeIn(float ftime = 0, TweenStyle blocking = eNoBlockTween, float delay = 0);
import void CustomTransition_IntantFadeIn();
import void CustomTransition_FadeOut(float ftime = 0, TweenStyle blocking = eNoBlockTween, float delay = 0);
import void CustomTransition_IntantFadeOut();
Loading

0 comments on commit c6f2e7e

Please sign in to comment.