Jump to content
  • 0

Need projectile help here!


Kanbei

Question

Yeah so here is the problem, if it hits them the explode animation appears fine, but when it contacts the ground it vanishes. I want it to explode, can I do this or do I need to turn it into a helper? Thanks in advance.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Yeah a helper is what you need. when i did it for one of my characters i just followed a method that pots used for his akuma when his air fireball hits the ground.

 

First add something like this changestate shown below into the state of the fire ball. Im not sure how you coded yours but im assuming its like mines. 1) i made a state for the character doing the move and 2) then i made another state for air fire ball animation itself. that air fire ball animation is where this code below will be to trigger that ground explosion.

 

[state XXX, End]
type=changestate
trigger1= pos y>=0
value=xxxxx;<----helper number of the explosion blast stuff

 

heres an example from my helper

 

 

[statedef xxxx];<---explosion blast stuff
type=A
physics=N
movetype=I
anim=xxxx;<-----blank image for helper
velset=0,0
ctrl=0
sprpriority=4
 
[state XXX, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256
ignorehitpause=1
[state XXX, Pos]
type=posset
trigger1= 1
y=0
 
 
[state XXX, Dust]
type=explod
trigger1= !time
anim=xxxxx<---------animation could go here for the explosion. just adjust it a bit
ID=xxxx
sprpriority=-2
pos=0,0
vel=0,0
removetime=-2
ownpal=1
scale=.75,.75
pausemovetime=-1
supermovetime=-1
 
[state XXX, blast]
type=explod
trigger1= !time
anim=xxxxxx;<---------Or animation could go here for the explosion. just adjust it a bit
ID=xxxxx
sprpriority=-2
pos=0,0
vel=0,0
removetime=-2
ownpal=1
scale=.4,.4
pausemovetime=-1
supermovetime=-1
 
[state XXX, End]
type=destroyself
trigger1= !animtime
 

 
hope that helps

EDIT crap smh you figured it out lol

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...