Jump to content

View more

Image of the Day

「筋肉兄貴のスーパーラン!」
夕焼けにガラス・・・(´・ω・`)
ガラスは割りたいでしょうけど、割ったらクリアできないですよ。
(o・ω・o)
 #indiedev  #indiegame #screenshotsaturday https://t.co/fhKO5NJ5ee
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Relative Movement of the Plataform

2: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 Pedrog   Members   

104
Like
0Likes
Like

Posted 17 May 2013 - 05:14 PM

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.

Attached Files

  • Attached File  Jogo.rar   5.11KB   44 downloads

Edited by Pedrog, 17 May 2013 - 05:19 PM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.