Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var base_color = <1.0, 1.0, 1.0, 1.0>;
- var hide_color = base_color * <1.0, 1.0, 1.0, 0.0>;
- var background = new Array(new Actor("bg01"), new Actor("bg02"), new Actor("bg03"), new Actor("bg04"), new Actor("bg05"), new Actor("bg06"), new Actor("bg07"), new Actor("bg08"), new Actor("bg09"), new Actor("bg10"), new Actor("bg11"), new Actor("bg12"), new Actor("bg13"), new Actor("bg14"), new Actor("bg15"), new Actor("bg16"), new Actor("bg17"), new Actor("bg18"), new Actor("bg19"), new Actor("bg20"), new Actor("bg21"), new Actor("bg22"), new Actor("bg23"), new Actor("bg24"), new Actor("bg25"), new Actor("bg26"), new Actor("bg27"), new Actor("bg28"), new Actor("bg29"), new Actor("bg30"), new Actor("bg31"), new Actor("bg32"), new Actor("bg33"), new Actor("bg34"));
- var anim_length = 0.4;
- var switch_time = 0.0;
- var bg_current = -1;
- var old_bg = bg_current;
- var base_scale = background[0].scale;
- var i = 0;
- if (!(i < background.length))
- {
- i++;
- background[i].scale = <0.0, 0.0, 0.0>;
- background[i].color = hide_color;
- System.timer[2] = new OneShotTimer(49.0 / 60.0, createIntervalTimer);
- updateBackground()
- updateBackground();
Advertisement
Add Comment
Please, Sign In to add comment