Computer Science Canada Making objects fall |
Author: | gigaman [ Wed Dec 21, 2005 1:17 pm ] |
Post subject: | Making objects fall |
I am making a mario game (yes i know the picture used is luigi) The problem i am having is making the character fall. I was trying to use threads but i don't understand them and i am not even sure they would work. Any help is appreciated |
Author: | Tony [ Wed Dec 21, 2005 3:14 pm ] |
Post subject: | |
inside your game's loop (so during each frame render) accelerate your character downwards by a set amount. make sure you're not letting things fall though the floor though ![]() |
Author: | gigaman [ Wed Dec 21, 2005 11:20 pm ] |
Post subject: | Timer |
Since positions can't be altered in the general declarations (yes obvious) should i do this in a timer? |