Blank Icon Script #577
Closed
THEkatinamicrowave
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
this script sucks actually; here's a better version //
function postCreate() {
for (i in iconArray) {
if (i.curCharacter != "face") return;
var useThisShit:Bool = (SONG.meta.customValues != null && SONG.meta.customValues.blankChar != null);
var newIcon:String = useThisShit ? new Character(0, 0, SONG.meta.customValues.blankChar).icon : null;
var coolColor:FlxColor = useThisShit ? new Character(0, 0, SONG.meta.customValues.blankChar).iconColor : 0xFFFFFFFF;
i.setIcon(newIcon != null ? newIcon : "face", 150, 150);
healthBar.createFilledBar(
Options.colorHealthBar ? (dad.icon == "face" ? coolColor : dad.iconColor) : (opponentMode ? 0xFF66FF33 : 0xFFFF0000),
Options.colorHealthBar ? (boyfriend.icon == "face" ? coolColor : boyfriend.iconColor) : (opponentMode ? 0xFFFF0000 : 0xFF66FF33));
healthBar.updateBar();
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
still sucks so like function postCreate() {
for (i in iconArray) {
if (i.curCharacter != "face") continue;
var useBlankChar:Bool = (SONG.meta.customValues != null && SONG.meta.customValues.blankChar != null);
if (!useBlankChar) continue;
var blankChar = new Character(0, 0, SONG.meta.customValues.blankChar);
i.setIcon(blankChar.icon ?? "face", 150, 150);
healthBar.createFilledBar(
Options.colorHealthBar ? (dad.icon == "face" ? blankChar : dad).iconColor : (opponentMode ? 0xFF66FF33 : 0xFFFF0000),
Options.colorHealthBar ? (boyfriend.icon == "face" ? blankChar : boyfriend).iconColor : (opponentMode ? 0xFFFF0000 : 0xFF66FF33));
healthBar.updateBar();
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Made for a first person pov character but I didn't want to make 3 versions of the same character just to use different icons, so I made this script.
To use it, put it in
songs/blankIcon.hx
.You need to have a meta customValue called "blankChar" with the name of the character whose icon to use
(Example:
blankChar: parents-christmas
)Putting this here because I'm banned from the discord until like August or smt
-- Micro
Beta Was this translation helpful? Give feedback.
All reactions