[State 1350, RELEASEtheHounds]
type = Velset
triggerall = P2Dist X > 0 ;whered it go? ;;You wont need this if they can go backwards
triggerall = time >= 7 ;out of the gun ;;I dont allow it to start tracking instantly.
triggerall=Time<=125 ;fuel supply ;;I stop tracking after 125 tics
trigger1 = (Time%1) = 0 ;;This keeps it thinking
trigger1 = var(10) = [1,-1] ;;This says its close enough to center to not worry.
y = 0
[State 150, RELEASEtheHounds]
type = Velset
triggerall = P2Dist X > 0 ;whered it go?
triggerall = time >= 7 ;out of the gun
triggerall=Time<=125 ;fuel supply
triggerall = (Time%1) = 0
trigger1 = var(10) = [-8,-1.1] ;;This says its low range
trigger2 = var(10) = [1.1,8] ;;This is its high range
y = var(10)/2 ;exact spot of chest ;;Simple division to slow it to my desired speed
;positive samus is below, negative samus is above.
[State 1350, RELEASEtheHounds]
type = Velset
triggerall = P2Dist X > 0 ;whered it go?
triggerall = time >= 7 ;out of the gun
triggerall=Time<=125 ;fuel supply
trigger1 = (Time%1) = 0
trigger1 = var(10) < -8
y = ifelse(vel y >= 5.1,2.1,vel y - 3)
[State 1350, RELEASEtheHounds]
type = Velset
triggerall = P2Dist X > 0 ;whered it go?
triggerall = time >= 7 ;out of the gun
triggerall=Time<=125 ;fuel supply
trigger1 = (Time%1) = 0
trigger1 = var(10) > 8
y = ifelse(vel y <= -5.1,-2.1,vel y + 3)
[State 1350, Max]
type = VelSet
trigger1 = (Time%1) = 0
trigger1 = vel Y > 6
y = 6
[State 1350, Min]
type = VelSet
trigger1 = (Time%1) = 0
trigger1 = vel Y < -6
y = -6
You can see I set a certain range the speed can go. The X speed is constant and only the Y gets adjusted. This may make it easier on you, But I think you want the speed to increase as it hits one to the next?? You can do this by setting it's animation if it connects, then set the X speed based off of it's animation. It's a way of skipping a variable to keep track.