How do I check if the right angle slash flag is set?
I did a search for slash in stdConstants.zh and zscript.txt and came up with nothing
Edited by Shadowblitz16, 01 January 2017 - 01:49 PM.
Posted 01 January 2017 - 01:48 PM
How do I check if the right angle slash flag is set?
I did a search for slash in stdConstants.zh and zscript.txt and came up with nothing
Edited by Shadowblitz16, 01 January 2017 - 01:49 PM.
Posted 02 January 2017 - 06:34 PM
How do I check if the right angle slash flag is set?
I did a search for slash in stdConstants.zh and zscript.txt and came up with nothing
Do you mean to check if Link has slash, or if slash direction is not reversed?
Posted 02 January 2017 - 07:25 PM
slash direction is not reversed
Posted 02 January 2017 - 09:13 PM
slash direction is not reversed
bool SwordFlipped(){ lweapon l; for ( int q = Screen->NumLWeapons(); q > 0; q-- ) { l = Screen->LoadLWeapon(q); if ( l->ID == LW_SWORD ) { return (l->Flip != 0); } } }Note that this will return '2' when it is flipped, but the sword animation ends on a non-slash sprite, which will return 0. There are fourteen frames of the slash animation, and the last four will return 0 even if the slash is flipped, so you want to catch it on the first frame of the sword's animation.
Edited by ZoriaRPG, 02 January 2017 - 09:38 PM.
Posted 02 January 2017 - 09:37 PM
ok nevermind then thankyou
Posted 02 January 2017 - 09:41 PM
ok nevermind then thankyou
Posted 02 January 2017 - 11:27 PM
well I need to check it for a stdWeapons type weapon
Posted 03 January 2017 - 11:40 AM
well I need to check it for a stdWeapons type weapon
Posted 03 January 2017 - 12:04 PM
ok I will then.
I just thought that making it configurable within the editor would be nice
Posted 04 January 2017 - 01:34 AM
ok I will then.
I just thought that making it configurable within the editor would be nice
Posted 04 January 2017 - 02:55 PM
I don't know really.
but that sounds cool I can't wait until v2.54.
are you guys planning on adding the Link hitbox variables? I just ask since that's what I'm looking forward to most.
0 members, 0 guests, 0 anonymous users