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 /
avatar image
0
Question by marvelshaan · Nov 06, 2013 at 09:06 PM · aimecanimenemyghost2d character

how to make ghostcharacter(enemy) crawl on sidewalls and walk on upper wall inversley???

i have ghost charecter (enemy) with wall run crawl animations...i want make him crawl and wall on sidewalls instead of floor....so,how i can do????....ya,like spider man..just,i want to do this,to make enemy more fearer.

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 solu0909_unity · Oct 06, 2020 at 02:45 AM 0
Share

Hello, I am a student studying Unity. Please understand that I am not good at English and use a translator. I am really curious if you have solved this problem. I'm also trying to implement a monster that crawls on the wall, but I don't know how. $$anonymous$$r. marvelshaan. If you have solved it, please help.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by guzmonne · Nov 06, 2013 at 11:20 PM

You could create an Animator Controller and add the animations you got there and the transitions between them. Set the parameters you think you'll need to trandition from one animation to the other.

In your character create an Animator Componene and add the Animator Controller you've just created. Also, be sure to mark "Apply Root Motion" as false. You'll want to control the character movement yourself.

Lastly, you have to create a script on the character to control the movement and position on the character while changing the blending parameters on the Animator Controller to create a smooth transition.

Since you didn't explained fully what kind of game you are creating I can't provide you with any code. So, instead you can try and look in some of these resources that explain some of the thing I breeze through here:

Unity Docs: Animator Controller

Unity Tutorials: Animator Controller

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
avatar image
0

Answer by MarkD · Nov 06, 2013 at 11:20 PM

I think by fearer you mean scary'er :). Anyway we are here for answers not grammar correcting :).

To answer your question is a bit tricky, because it all depends on whether you use physix or not. If the enemy only needs to crawl the wall on special events it might be easier to just animate it, but! If it is the standard behavior of an enemy, you need to think in the direction of navmesh (pro) or write your own script that detects walls and then transforms the position of the enemy along that wall.

A way to do this is with a siple Tag on the wall called wall(for just being easy :p) then you can write a script for your enemy that as an OnColliderEnter function and an if statement detecting that wall's name. Then if it is detected write the part that makes your enemy go up.

Now good luck and make them fear your beast:)

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

18 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

Related Questions

Send an enemy back to its spawn point using waypoints 2 Answers

How to make this enemy script shoot upwards? 1 Answer

Checking name from hit from Raycast in array 2 Answers

Assigning a particle system to a variable 2 Answers

How do I make enemy AI with third person assets? 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