YesNoOk
avatar

curved projectile keeps going through the ground (Read 155 times)

Started by davidthepirate, December 03, 2011, 12:51:45 am
Share this topic:
curved projectile keeps going through the ground
#1  December 03, 2011, 12:51:45 am
  • avatar
I'm making a link character and i'm having him throw bombs. i've used a projectile code with velocity and acceleration to make it fly up in the air and then curve to the ground. the problem is that it just keeps going through the ground. I want it to land and then explode. Here is the code I'm using. I'm very new to Fighter Factory and can't figure out how to make the bomb land on the ground. Help!

; Throw Bomb
[StateDef 700]
type = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 700
poweradd = 20

[State 700, 1]
type = Projectile
trigger1 = AnimElem = 2
projanim = 701
projhitanim = 702
projpriority = 1
projheightbound = -240, 100
projedgebound = 100
projscreenbound = 100
projshadow = 0
offset = 58,-58
velocity = 3, -5
accel = 0, 0.4
attr = S, SP
damage   = 75
animtype = heavy
guardflag = MA
hitflag = MAFDP
pausetime = 10,10
hitsound   = 5,2
sparkxy = 500,500
guardsound = S6,0
ground.type = Low
ground.slidetime = 25
ground.hittime  = 25
ground.velocity = -6
air.animtype = Back
air.velocity = -4,-6
air.juggle = 3
air.fall = 1
down.velocity = -4,-6
down.hittime = 30
down.bounce = 0

[State 700, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
Re: curved projectile keeps going through the ground
#2  December 03, 2011, 02:42:54 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
projheightbound = -240, 100

This. Make the 100 into 0, should solve it.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: curved projectile keeps going through the ground
#3  December 03, 2011, 06:15:58 pm
  • avatar
Thank you. It worked perfectly.