
Board: Feedback
a attempt doing Franziska Von Karma
I don't like how the head turned out
Because it's better done with multiple states.
Make a separate state for your character pushing through the enemy and trigger it on movehit and the B button being held, while keep this state only for non-push through option.
But how can I make that second state cleanly look like the character continuing the horizontal movement and stopping behind the foe?
[State 330, State]-"Reader" helper's state in question, depending on its' ID, sets different variables to read Root's parameters, like direction, animation and ets. Here is the code for direction:
type = ChangeState
trigger1 = Root, Var(2) < 2
trigger1 = Time >= 15
trigger2 = Root, Var(2) = 2
trigger2 = Time >= 36
trigger3 = Root, Var(2) > 2
trigger3 = Time >= 60
value = 331
[State 340, VarSet]So, at state's time = 0, the var(0) = enemy turned to the right, at time 4, the var(4) = enemy turned to the right, and every 60 frames it resets back to var(0). It works, because there are exactly 60 variables available: from 0 to 59.
type = VarSet
trigger1 = IsHelper(340)
var(StateTime%60) = Root, Facing
[State 330, Turn]As you can see, state reads the variable, depending on its' OWN time. So, when "Reader" helper's time var at the moment is, for example, 47, the variable "Shadow" state reads at the time = 0 is var(0).
type = Turn
triggerall = NumHelper(340) > 0
trigger1 = (Helper(340), Var(StateTime%60) < 0) && (Facing = 1)
trigger2 = (Helper(340), Var(StateTime%60) > 0) && (Facing = -1)
Sprite's Group, Sprite's Index, X Axis position, Y Axis position, Time, Flip, Transparency, X Scale multiplier, Y Scale Multiplier, Rotation AngleEverything after Time and before Scale parameters can be left empty to leave the parameters unchanged. So, if you just want to change the angle, all you need to add is [,,,1 ,1 , Rotation Angle]. You add many new animelems with the same sprites, apply different angles to them and move them around with Blue Cross to place the, properly. There are more reliable ways to do so, but they might be too hard for you right now.
[State 0, TargetBind]
type = TargetBind
trigger1 = AnimElemTime(1)>=0 && AnimElemTime(2)<0
time = 1
pos = Pos X, Pos Y
Sorry for I'm a newbie. Now i was update new link for download. Thank you for your interest.
Who is the demon lady kameo for Havik?