Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by MetalLord · May 03, 2013 at 05:08 PM · raycastgravitywalking

Make character walk on walls defying gravity in a 2D Game

Im usually make games in unity,but since I'm making a pure 2d game i tried working on stencil,but after weeks i think the visual programming system isn't enough to do what im trying,so i want to know if with unity its possible

Im trying to make a game like lemmings,several characters walk from left to right and walk alongside the walls defying gravity,making their walk with waypoints would be easy,but the catch is that the scenery is destructible,the structures are like lego pieces and change all the time,so no invisible colliders,no waypoints,i need a way to make all the logic work just in the characters,maybe with ray cast in four directions and changing movement based on which ones collided ?

alt text

Comment
Add comment · Show 3
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 AlucardJay · May 03, 2013 at 06:16 PM 0
Share

You bumped but didn't fix your alt text link. Bumping after just one hour is not cool.

  • https://www.google.com.au/search?q=unity+character+walk+on+walls

  • http://answers.unity3d.com/questions/155907/basic-movement-walking-on-walls.html

avatar image MetalLord · May 07, 2013 at 05:19 AM 0
Share

Sorry,forgot to say the game is 2d.

avatar image Fornoreason1000 · May 07, 2013 at 06:25 AM 0
Share

try setting your players feet to the collider of the level. then make jump the opposite of the normal direction and make the character fall back to the normal if he is in the air

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by bodec · May 07, 2013 at 06:25 AM

Yes, you can make what is being considered a 2.5D game in unity it will all be in 3d space but using 2d items you can accomplish this with a scrolling camera or with the onGUI function. Use the simplicity of 3d space with colliders but in a 2d appearance.

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

15 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

Related Questions

A node in a childnode? 1 Answer

Where can i find an easy raycast shooting tutorial for C#? 2 Answers

Double Jump 1 Answer

Raycast cone or cube to detect another object 0 Answers

touch game objects on ios 1 Answer


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