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 /
  • Help Room /
avatar image
1
Question by Abuthar · Oct 28, 2015 at 11:57 PM · physics2djumpingaxis2d platformertop down

2D Top-Down Platforming like Mario and Luigi: Super Star Saga

Hey, I have a few months of experience with unity can have been able to learn A LOT. I've created several small games ranging from 3D FPS games to 2D sidescroller games. My current endeavour has me stuck: How can I create a 2D Top Down game that allows the player to jump on platforms, enemies, etc. Here is an example of what I am aiming for: https://www.youtube.com/watch?v=ZmqE8qqyh_A

I understand the concept of using the Z axis to achieve something like this jump, but here's the dilema: I want to keep this game 2D, and with 2D colliders, z-order does not affect collision. an object with a z pos of -1 can collide with an object of 324 z pos.

I've tried using the ignoreCollision method and changing the Y position with the jump to jump on a pillar. However, when i walk off the edge of the pillar, the player does fall down behind the pillar but keeps walking (because moving up and down is based upon y pos).

Does anyone know how his can be achieved with having to use 3D? I'm not looking for free code, but a good explanation of how this can be done is much appreciated. Coming from a background in writing and animation, i feel like I'm not approaching this correctly.

(also the combat in mind is more link legend of Zelda, which i know how to do, not a turn based RPG like Mario & Luigi: SSS)

Comment
Add comment · Show 1
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 creepergames999 · Nov 10, 2020 at 10:04 PM 0
Share

hello, I'm also after the same answer as you, but I know that $$anonymous$$ario & Luigi Bowser's inside story uses a 3D engine, so, as he is more recent than the superstar saga, I think it's the right way to program, I hope I have helped here is a link of the bowser's inside story 3D explanation: https://www.youtube.com/watch?v=rnIZ2HYCFmI

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Statement · Oct 29, 2015 at 12:05 AM

achieve something like this jump, but here's the dilema: I want to keep this game 2D, and with 2D colliders, z-order does not affect collision.

Turn collider off or change to a layer that doesn't interact with enemies.

changing the Y position with the jump to jump on a pillar

You could just change the y position of the graphic, not the logic/collider. (make the graphic a child)

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

34 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

RiigidBody2D.AddForce() isnt working at all. 0 Answers

how can i make my player jump to fixed position contenously 0 Answers

rigidbody2d.addforce do not stop the force when rigid2d.iskenemetic = true; 0 Answers

My character flies upwards instead of jumping (2D) 1 Answer

Inconsistent jump height and double jumping issues with rigidbody2D on a sprite 0 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