Sign in to follow this  
pedrogabriellancelloti@hotmail.com

Relative Movement of the Plataform

Recommended Posts

Hi Guys, I'm stucked at a new problem.

In my game, I want the character on the center of the screen always. I could do it with the boundary(ground = chao), but I can't do it with the plataform. I tried with a bunch of diferents forms and always two thinks happens : the plataform stucks or the plataform walk in the same direction as my character. Here's the code:
 

http://pastebin.com/GSqHtJmt (main)
http://pastebin.com/1uxy37mT (class chao = ground)
http://pastebin.com/sLvM0si4 (class personagem = character)
http://pastebin.com/V4qnnGDk (class plataform)

Pdes in attached files

Sorry about the comment mess, variable names and my grammar.

Edited by Pedrog

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this