Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualszecs

Posted 26 June 2012 - 10:51 PM

Um.... Your Timer is still posted broken.

How do you call Timer? How is your code structured?

Do you have a game loop? That while statement in the Timer looks extremely suspicious, it looks like you intend to move the object all the way inside Timer? Or are you using some nested gameloop? How?

"Intend to move" (?), because you use an if statement with a comparison that will be never true probably. I don't even get the intention really, what are you trying to do when the position is equal with -1.5.

The use of timer implies that you have a event driven game loop (advancing only if an input event happens) instead of a continuously running game loop. Objects and rooms imply imply the need of a continuously running game loop.



Post the whole stuff and sorry for the random questions and things.

#2szecs

Posted 26 June 2012 - 10:49 PM

Um.... Your Timer is still posted broken.

How do you call Timer? How is your code structured?

Do you have a game loop? That while statement in the Timer looks extremely suspicious, it looks like you intend to move the object all the way inside Timer? Or are you using some nested gameloop? How?

"Intend to move" (?), because you use an if statement with a comparison that will be never true probably. I don't even get the intention really, what are you trying to do when the position is equal with -1.5.

The use of timer implies that you have a event driven game loop (advancing only if an input event happens) instead of a continuously running game loop. Objects and rooms imply imply the need of a continuously running game loop.



Post the whole stuff and sorry for the random questions and things.

#1szecs

Posted 26 June 2012 - 10:42 PM

Um.... Your Timer is still posted broken.

How do you call Timer? How is your code structured?

Do you have a game loop? That while statement in the Timer looks extremely suspicious, it looks like you are moving the object all the way inside Timer? Or are you using some nested gameloop? How?

Post the whole stuff.

PARTNERS