• 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 Revan · May 08, 2010 at 05:37 AM · floating

Staying on a floating plataform

Hello, I already code a simple object and it moves towards a floating plataform(its a simple rectangle), I already put some animation to that plataform to move from one point to another and it loops, but my question is how to make the character object to stay in that plataform, because the player has to move forward to keep on the plataform, if not it falls.

Im using CharacterController.SimpleMove. to control the character object.

Thanks =)

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
1

Answer by Peter G · May 08, 2010 at 11:09 AM

This question has been answered in several different places. I'll link you to them. Basically you can either move the player up slightly every frame (thats how the 2D platform tutorial does it) or you can parent the elevator to the player and then unparent them when the player gets off.

Forum Post

Another Forum Post

2D platformer

Unity Answers

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 Revan · May 08, 2010 at 04:18 PM

Thanks for the information PeterG, Im working on my code right now.

Comment
Add comment · Show 1 · 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 Peter G · May 08, 2010 at 06:52 PM 0
Share

Glad to help, please post comments like yours as a comment below your question or someone else's answer, ins$$anonymous$$d of as another answer.

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

No one has followed this question yet.

Related Questions

How to change the angle my character falls at 1 Answer

Make object rock with waves of pro water 1 Answer

Glitches issues (huge world) 20k x 20k 3 Answers

Boat rotating(rolling) on x and z axis based on height of water at front,back,left right 0 Answers

Making realistic water 0 Answers

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