Hi Kirupa, first time poster here… and i hope i can help out other folk on the forums as well as just asking for a little help here and there ^^
I have been asked to create a Flash game for my student project this year. i chose to create a 2D platformer. Now, the first thing i did was look at your tutorial on gravity, however when i looked at it i realised it was slightly different from what i wanted so i tweaked it a little using information from http://www.bit-101.com/tutorials/gravity.html.
I got it to jump exactly the way i wanted it to, however then i wanted it to land on platforms… and theres where i hit the snag.
First i created a single platform at the bottom of the stage so that the ball would land on it after jumping instead of falling right past the boundaries of the stage. This worked, however the ball always landed at different depths into the ground… which i thought was stange. Nevertheless i ignored it for the moment and thought about making more than one platform to get the ball landing on more than one thing. however, no matter what i tried, i could only get it to land on one. I have no idea what i’m doing wrong. all the hit states are correct… all the instance names and code are exactly the same on the stage however, so even though its the same as the first time it landed, i think it’s conflicting and causing screwups…
In the file attatched, you’ll find that the ball only lands on the right hand panel. I’ve tried everything i could think of and can’t get the ball to land on the other panels. The code is exactly the same…
if anyone can help me i would really appreciate it. Thanks.
Left and right to move. Space to jump