• 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 · physics2daxisjumping2d 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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



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

How do you make a object move, and jump. Also how do you add physics and collision? 0 Answers

2D platformer Touch button? 1 Answer

2d Platformer double jump wont work 2 Answers

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

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

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges