YesNoOk
avatar

Gimmicky "projectile" difficulty (Read 412 times)

Started by Dawn de Era, December 10, 2016, 03:45:44 am
Share this topic:
Gimmicky "projectile" difficulty
#1  December 10, 2016, 03:45:44 am
  • ***
  • Come On You Know LGx
  • biblical (yea)
    • USA
    • Skype - eddsworldtrash
    • remixsparta.wix.com/mugensdawn
How would I have a helper act like a projectile that goes into a different state when it lands on the ground?
I also want the helper "projectile" to fall at an increasing rate starting at 0.
If anyone can supply me with an answer, it would be appreciated!
Last Edit: December 10, 2016, 04:19:21 am by HarmoknightYo
Re: Gimmicky "projectile" difficulty
#2  December 10, 2016, 09:19:10 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
It's exactly the same as coding your character to go into a landing state

[State Changestate]
type = changestate
trigger1 = pos Y>= -vel Y
value = landing state

Use either gravity or veladd while your character is pos Y!= 0 to make them fall.

Make sure to velset = 0,0 and posset them to 0 in the landing state itself.

If you don't care about a new state, just use changeanim instead, still making sure to stop their velocity and lock them to pos Y = 0 again.


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.