YesNoOk
avatar

Helper help (Read 1949 times)

Started by alex2005992, September 05, 2007, 11:19:17 pm
Share this topic:
Helper help
#1  September 05, 2007, 11:19:17 pm
  • avatar
  • *
ok i'm doing a Basic Kunai throw but once i throw it a clone of me apears.
then once i remove the helper state that causes the clone instead of throwing the kunai i end up flying foward and turn into a kunai.
can any one explain how to get this to work.
Re: Helper help
#2  September 05, 2007, 11:25:13 pm
  • ******
  • [E]
    • Mexico
see similar topic form this week about helper projectiles.
Re: Helper help
#3  September 06, 2007, 12:25:00 am
  • avatar
  • *
i don't understand it do u mind making it simple.... like tell me what i'm missing

heres my code:

;Rasen Shuriken
[Statedef 252]
type = S
movetype = A
physics = S
juggle = 4
poweradd = 75
ctrl = 0
velset = 0,0
anim = 252
sprpriority = 2

[State 252, Helper]
type = Helper
trigger1 = Animelem = 11
helpertype = normal
id = 252
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1


[State 252, Velset]
type = velset
trigger1 = Animelem = 11
x = 20

[State 252, Velset]
type = velset
trigger1 = Animelem = 13
x = 0


[State 252, 2]
type = HitDef
trigger1 = 1 && !movecontact
attr = S, NA
animtype = Medium
damage = 35,5
guardflag = MA
pausetime = 24,16
sparkno = 1
sparkxy = -10,-20
hitsound = 5,2
guardsound = 6,0
ground.type = Low
ground.slidetime = 12
ground.hittime = 15
ground.velocity = -1
air.velocity = -1
air.fall = 1


[State 252, DestroySelf]
type = DestroySelf
trigger1 = movecontact

[State 252, 7]
type = ChangeState
trigger1 = Animtime = 0
value = 0
ctrl = 1
Last Edit: September 06, 2007, 12:33:42 am by alex2005992
Re: Helper help
#4  September 06, 2007, 12:29:15 am
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
It looks like you made a helper state in the summon state.. o_O
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Helper help
#5  September 06, 2007, 12:33:24 am
  • avatar
  • *
my bad i acidently turned that to 0 when i was coping thats not actualy in my cns
Re: Helper help
#6  September 06, 2007, 12:37:59 am
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
Well did you edit the post?

If you did its still wrong.
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Helper help
#7  September 06, 2007, 12:46:47 am
  • avatar
  • *
what did i do wrong?
Re: Helper help
#8  September 06, 2007, 12:48:44 am
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Helper help
#9  September 06, 2007, 12:51:53 am
  • avatar
  • *
seperate my helper state????
do u mean change the state no.?
Re: Helper help
#10  September 06, 2007, 01:02:31 am
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
I guess you dont know what seperate means..:omg:

Heres an example.
Taken from one of my characters.


This is the Summon State.
[Statedef 1925]
type    = S                     ;State-type: S-stand, C-crouch, A-air, L-liedown
movetype= A                      ;Move-type: A-attack, I-idle, H-gethit
physics = S                      ;Physics: S-stand, C-crouch, A-air
juggle  = 1                      ;Number of air juggle points move takes
velset = 0,0                     ;Set velocity (x,y) (Def: no change)
ctrl = 0                         ;Set ctrl (Def: no change)
anim = 1925 <--Summon animation
poweradd = 8
sprpriority = 2

[State 1925, Helper]
type = Helper
trigger1 = AnimElem = 3
helpertype = normal
name = "Flare"
ID = 74142
stateno = 200 <--Helper State
pos = -1,0 <--Postion
facing = 1
keyctrl = 0
ownpal = 1

[State 1925, 1]
type = PlaySnd
trigger1 = AnimElem = 3
value = 1, 0

[State 1925, 7]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

Now this is the Helper State.
Its kinda sloppy..

[Statedef 200]
type    = S                      ;State-type: S-stand, C-crouch, A-air, L-liedown
movetype= A                      ;Move-type: A-attack, I-idle, H-gethit
physics = S                      ;Physics: S-stand, C-crouch, A-air
juggle  = 1                     
;Commonly-used controllers:
velset = 0,0                     
ctrl = 0                         
anim = 200 <--The Helpers Animation                   
poweradd = 20                   
sprpriority = 2                 

[State 200, 1]
type = HitDef
trigger1 = AnimElem = 1
attr = S, NA                     ;Attribute: Standing, Normal Attack
damage = 23, 0                   ;Damage that move inflicts, guard damage
animtype = Light                 ;Animation type: Light, Medium, Heavy, Back (def: Light)
guardflag = MA                   ;Flags on how move is to be guarded against
hitflag = MAF                    ;Flags of conditions that move can hit
priority = 3, Hit                ;Attack priority: 0 (least) to 7 (most), 4 default
;Hit/Miss/Dodge type (Def: Hit)
pausetime = 8, 3                 ;Time attacker pauses, time opponent shakes
sparkno = 2
sparkxy = -10,-33              ;X-offset for the "hit spark" rel. to p2,
;Y-offset for the spark rel. to p1
hitsound = s999                  ;Sound to play on hit
guardsound = 6, 0                ;Sound to play on guard
ground.type = High               ;Type: High, Low, Trip (def: Normal)
ground.slidetime = 5             ;Time that the opponent slides back
ground.hittime  = 10             ;Time opponent is in hit state
ground.velocity = 0             ;Velocity at which opponent is pushed
airguard.velocity = -1.9,-.8     ;Guard velocity in air (def: (air.xvel*1.5, air.yvel/2))
air.type = High                  ;Type: High, Low, Trip (def: same as ground.type)
air.velocity = -1.4,-3           
;Y-velocity at which opponent is pushed
air.hittime = 12
envshake.time = 6
envshake.ampl = 8
envshake.freq = 10
palfx.add = 240,50,0
palfx.mul = 250,224,120
palfx.sinadd = 110,55,85,10
palfx.time = 30

[State 200, AfterImage]
type = AfterImage
trigger1 = !Time
time = 999
length = 8
PalContrast = 250,244,10
PalAdd = 240,90,15
PalMul = .6,.5,.25
TimeGap = 2
FrameGap = 1
Trans = Add

[State 200, Pause]
trigger1 = movecontact = 1
type = Pause
time = 5
pausebg = 1

[State 200, 1]
type = PlaySnd
trigger1 = Time = 1
value = 3, 0
volume = 1000

[State 200, ]
type = DestroySelf
trigger1 = AnimElem = 6
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Helper help
#11  September 06, 2007, 01:05:53 am
  • ******
  • [E]
    • Mexico
i don't understand it do u mind making it simple.... like tell me what i'm missing

heres my code:

;Rasen Shuriken
[Statedef 252]
type = S
movetype = A
physics = S
juggle = 4
poweradd = 75
ctrl = 0
velset = 0,0
anim = 252
sprpriority = 2

[State 252, Helper]
type = Helper
trigger1 = !IsHelper
trigger1 = Animelem = 11
helpertype = normal
id = 252
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1


[State 252, Velset]
type = velset
trigger1 = Animelem = 11
x = 20

[State 252, Velset]
type = velset
trigger1 = Animelem = 13
x = 0


[State 252, 2]
type = HitDef
trigger1 = 1 && !movecontact
attr = S, NA
animtype = Medium
damage = 35,5
guardflag = MA
pausetime = 24,16
sparkno = 1
sparkxy = -10,-20
hitsound = 5,2
guardsound = 6,0
ground.type = Low
ground.slidetime = 12
ground.hittime = 15
ground.velocity = -1
air.velocity = -1
air.fall = 1


[State 252, DestroySelf]
type = DestroySelf
trigger1 = IsHelper
trigger1 = movecontact

[State 252, 7]
type = ChangeState
trigger1 = !IsHelper
trigger1 = Animtime = 0
value = 0
ctrl = 1


rather than fixing it completely, this should give you a good idea onw hat is wrong with your code.
Re: Helper help
New #12  September 06, 2007, 01:20:44 am
  • avatar
  • *

edit: nvm works great was a anim error ty for all the help
Last Edit: September 06, 2007, 01:26:58 am by alex2005992