YesNoOk
avatar

How to make projectile travel farther horizantally? (Read 412 times)

Started by Redben, January 12, 2020, 07:36:54 am
Share this topic:
How to make projectile travel farther horizantally?
#1  January 12, 2020, 07:36:54 am
  • avatar
  • *
    • Morocco
This is not a normal projectile: it's Thor's hammer launching, and once its launched it travels to a certain limited distance (in relation to p1, not the stage or anything, thus if the stage zooms or is big it's still the same distance) it travels back to Thor's hand. What I wish to do is to make it travel more than it does before it returns to him. Thanks in advance.
Last Edit: January 12, 2020, 08:01:01 am by Redben
Re: How to make projectile travel farther horizantally?
#2  January 13, 2020, 01:04:21 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
There are several ways to do it, depending on what you have already.
Post the code of your hammer and we will tell you what to change.
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: How to make projectile travel farther horizantally?
#3  January 13, 2020, 07:02:50 pm
  • avatar
  • *
    • Morocco
There are several ways to do it, depending on what you have already.
Post the code of your hammer and we will tell you what to change.
Spoiler: A TON OF CODE (click to see content)


PS: I'm sorry for putting all the 3 modes of the launch, but I feared there might be something in one of them that may affect them all.
Last Edit: January 14, 2020, 09:40:03 pm by Odb718
Re: How to make projectile travel farther horizantally?
#4  January 14, 2020, 09:41:53 pm
  • *****
  • Shame on you!
    • USA
If you only care about total distance, no matter what, convert that into time.
At it's current velocity, how many tics is it until you've reached your desired distance??
Use that time >= x to change states.
vVv Wheat Stage Released vVv
Re: How to make projectile travel farther horizantally?
#5  January 16, 2020, 06:23:27 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
The helper returning isn't based on time or distance. Its based on thor not being in state 1005 any more. Making that state last a little longer would work. But looking at it you need to adjust all the returning anims too no matter what you do because thats obviously a planned vel rather than just a constant that goes straight.

You will have to do something with the return no matter how you resolve this. Simplest method would be change the velsets for each mjolnir go state to be 2 or 3 higher and see how it looks.


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.