Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by sacredgeometry · Mar 31, 2010 at 10:39 PM · inputjumpplatformermario

The Mario Jump?

Hi this has probably been over asked but i cant find any information on it, and i was wondering the best way to do this inside unity.

when mario jumps the jumps are prolonged till the button is released

Things i am curious about are:

whether or not to use physics?

if using physics what is the "standard" (if any) way to do this? is it changing the mass during the jump? the power of the jump? or increasing the gravity when the button has been released.

peace

Brian

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by qJake · Mar 31, 2010 at 11:31 PM

One way to do it (yes, using physics), would be to add to the player's velocity when the jump button is pressed (add to the Y-value of it), and continue to add to it for maybe a half a second or a second while the button is pressed. So if it was only pressed lightly, jump normally (say, +5 velocity), but if the button was held down for a semi-extended period of time, keep adding very small values to the velocity, as well, say 0.05 velocity per update, until the "maximum jump time" is reached (the longest they can hold the button for the jump to be longer), maybe 0.5 to 1 seconds.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sacredgeometry · Apr 01, 2010 at 12:15 AM 0
Share

thank you very much :) i will try this in a second i'm just randomising my cloud formations at present(dont laugh)

peace

$$anonymous$$

avatar image elbon96 · Oct 30, 2010 at 03:37 PM 0
Share

laugh laugh

avatar image
0

Answer by shahinexir · Aug 20, 2012 at 11:54 AM

hey im making the same mario jump and need to make it jump a lil hgher if i hold the up button. so would u please show me your jump script ? tnx in advance for your help ;)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

(C#) A better way to limit actions to once per button press? 2 Answers

Smoothing out jumping? 1 Answer

Wall Jumping Help 1 Answer

Difficulty with rolling my own platformer script 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges