I am helping someone use a Proffiboard in a Beyblade. It’s essentially a spinning top. I thought we could just use spin as on / off.
It would be simplest actions:
Spin activates “ignition”.
Clashes work as usual as it bumps into other things, random quotes play via bladestyle, etc…
Then when it slows below Spin speed, it turns off.
I thought I could just do this in hybrid_font.h to have it work, and then adjust the smoothsw.ini parameter for AccentSwingSpeedThreshold to dial in the on / off.
AM I missing something because no matter how low AccentSwingSpeedThreshold is set, it doesn’t seem to activate when spinning.
These are the changes:
In StartSwing()
@@
#ifdef ENABLE_SPINS
if (angle_ > font_config.ProffieOSSpinDegrees) {
- if (SFX_spin) {
- SaberBase::DoEffect(EFFECT_SPIN, 0);
- }
+ if (!SaberBase::IsOn()) TurnOn();
angle_ -= font_config.ProffieOSSpinDegrees;
- }
+ } else if (SaberBase::IsOn()) TurnOff(OFF_NORMAL);
#endif
anf then don’t play spin sound in SB_Effect()
// #ifdef ENABLE_SPINS
// case EFFECT_SPIN:
// if (guess_monophonic_) {
// PlayMonophonic(&SFX_spin, &SFX_hum);
// } else {
// swing_player_ = PlayPolyphonic(&SFX_spin);
// }
// return;
// #endif
Is it not this simple?