x


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 =)

more ▼

asked May 08 '10 at 05:37 AM

Revan gravatar image

Revan
4 2 2 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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

more ▼

answered May 08 '10 at 11:09 AM

Peter G gravatar image

Peter G
15k 16 44 136

(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered May 08 '10 at 04:18 PM

Revan gravatar image

Revan
4 2 2 2

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

May 08 '10 at 06:52 PM Peter G
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x40
x1
x1

asked: May 08 '10 at 05:37 AM

Seen: 620 times

Last Updated: May 08 '10 at 05:37 AM