Post #1 · Posted at 2017-11-27 03:14:44pm 6.4 years ago
leadbman | |
---|---|
Member | |
263 Posts | |
Reg. 2016-02-01 | |
"Working On: 5thMix BGA bgchanges" |
Hi all,
I'm needing some help, I'm doing HoldJudgment labels for my theme and I want to be able to swap between labels. However the problem I'm having is when I do this:
return Def.ActorFrame {
LoadActor("JudgementGraphics/"..judGroup.."/HoldJudgment label 1x2")..{
};
}
It just flips between the "O.K." and "N.G." parts of the image constantly till they fade out.
To stop this from happening I put in:
InitCommand=cmd(pause;);
To stop it changing between the two halves of the image but since I've had to do that, the game only displays "O.K." even if the metric for HoldJudgmentLetGoCommand is run (i.e. if I let go of the freeze during a hold).
My metrics are below. I have a feeling I might be able to check for a metric being run and then display the correct part of the HoldJudgment label?
[HoldJudgment]
HoldJudgmentHeldCommand=finishtweening;y,0;shadowlength,0;diffusealpha,0.5;zoomx,2.0;zoomy,0;linear,0.05;diffusealpha,1;zoomx,1;zoomy,1;sleep,0.8;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0;
HoldJudgmentLetGoCommand=finishtweening;visible,true;shadowlength,0;diffusealpha,1;zoom,1;y,-10;linear,0.8;y,10;sleep,0.5;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0;
Any help would be appreciated, I'm happy it's at least showing the O.Ks correctly, hopefully it won't be too difficult to fix the N.Gs.
I'm needing some help, I'm doing HoldJudgment labels for my theme and I want to be able to swap between labels. However the problem I'm having is when I do this:
return Def.ActorFrame {
LoadActor("JudgementGraphics/"..judGroup.."/HoldJudgment label 1x2")..{
};
}
It just flips between the "O.K." and "N.G." parts of the image constantly till they fade out.
To stop this from happening I put in:
InitCommand=cmd(pause;);
To stop it changing between the two halves of the image but since I've had to do that, the game only displays "O.K." even if the metric for HoldJudgmentLetGoCommand is run (i.e. if I let go of the freeze during a hold).
My metrics are below. I have a feeling I might be able to check for a metric being run and then display the correct part of the HoldJudgment label?
[HoldJudgment]
HoldJudgmentHeldCommand=finishtweening;y,0;shadowlength,0;diffusealpha,0.5;zoomx,2.0;zoomy,0;linear,0.05;diffusealpha,1;zoomx,1;zoomy,1;sleep,0.8;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0;
HoldJudgmentLetGoCommand=finishtweening;visible,true;shadowlength,0;diffusealpha,1;zoom,1;y,-10;linear,0.8;y,10;sleep,0.5;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0;
Any help would be appreciated, I'm happy it's at least showing the O.Ks correctly, hopefully it won't be too difficult to fix the N.Gs.
Post #2 · Posted at 2017-11-27 04:09:55pm 6.4 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
You need to use setstate to change the frame being displayed.
Post #3 · Posted at 2017-11-27 04:47:51pm 6.4 years ago
leadbman | |
---|---|
Member | |
263 Posts | |
Reg. 2016-02-01 | |
"Working On: 5thMix BGA bgchanges" |
Thanks for that Kyzentun. I'll look into that more when I get back to my PC later. Is there a way to check which state is being used for the HoldJudgment? As in, can I say:
What should I have in place of "Hold" in that if statement if that's something I could do?
Thanks again for the heads up about setstate. Glad it's fixable.
if "Hold" then
self:setstate (0);
else
self:setstate(1);
end;
self:setstate (0);
else
self:setstate(1);
end;
What should I have in place of "Hold" in that if statement if that's something I could do?
Thanks again for the heads up about setstate. Glad it's fixable.
Post #4 · Posted at 2017-11-27 05:58:07pm 6.4 years ago
Engine_Machiner | |
---|---|
Member | |
222 Posts | |
Reg. 2014-01-16 | |
"~The message~" |
if self:GetState() == 1 and "Hold" then
blablabla
end
blablabla
end
Can't tell if this is the right way, because I don't know what or how HoldJudgement gets called.
Post #5 · Posted at 2017-11-28 03:33:19am 6.4 years ago
leadbman | |
---|---|
Member | |
263 Posts | |
Reg. 2016-02-01 | |
"Working On: 5thMix BGA bgchanges" |
InitCommand=function(self)
if THEME:GetMetric("HoldJudgment","HoldJudgmentLetGoCommand") then
self:setstate(1);
self:pause();
else
self:setstate(0);
self:pause();
end;
end;
if THEME:GetMetric("HoldJudgment","HoldJudgmentLetGoCommand") then
self:setstate(1);
self:pause();
else
self:setstate(0);
self:pause();
end;
end;
So the setstates work here, however I need to work out if I can find out if the hold is occuring. I think I'm going to have to check the Player Number and check if they have let go of the freeze somehow. That way the code will check during the freeze arrow. However I don't know how to find out if the player is holding a freeze during a song Is there any documentation for that? I was thinking I could check metrics, hence the if statement above, but I don't think that's possible as that would only be setting what to do when that action occurs in game.
Post #6 · Posted at 2017-12-01 08:21:53pm 6.3 years ago
FlameyBoy | |
---|---|
Member | |
335 Posts | |
Reg. 2011-03-09 | |
Have you tried just returning the LoadActor rather than wrapping it in an ActorFrame?
Post #7 · Posted at 2017-12-02 04:41:07pm 6.3 years ago
leadbman | |
---|---|
Member | |
263 Posts | |
Reg. 2016-02-01 | |
"Working On: 5thMix BGA bgchanges" |
Quote: FlameyBoy
Have you tried just returning the LoadActor rather than wrapping it in an ActorFrame?
No I hadn't! I just did it and it works perfectly now. Thanks so much, I didn't think that the ActorFrame would cause the issue. Very, very happy that works now.
Thanks again!
Just so people who view this later are aware, I was able to achieve the swaps simply by using:
return LoadActor("JudgementGraphics/"..judGroup.."/HoldJudgment label 1x2")..{};
Where judGroup is the folder I wanted to get the new graphics from. I didn't need to check for holds etc.