Ceiling bouncing

Started by Noctis, March 26, 2012, 06:27:31 AM

Previous topic - Next topic

Noctis

Yeah, I have no idea how to do it. I don't know if there's a specific code for it or if I have to code it so if the camera WOULD move, he bounces instead.
What's do I do?

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."

Dcat

You need to send the opponent into several custom states, the first being a state where they're sent flying up to the top of the screen with negative y velocity, in this state you put a ScreenBound sctrl with movecamera = 0,0 so that the screen won't shift up as the opponent rises. Once they're within a certain distance from the top of the screen they should be sent to the second state which bounces them back down towards the ground again using positive Y velocity, then they should change back to their hit ground state using a SelfState sctrl once they near the floor of the stage. Same basic method as the wall bounce only you're using greater vertical velocities as opposed to horizontal ones.



Cyanide

screenpos Y = 0 is the top of the screen if that helps as well. This value is ALWAYS the top of the screen, doesn't matter how high up you are.


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.