Hi all, well, I wanted to make a litle platform game. So I tryed to find some tutorials I could start on… well, I found two nice ones…
This one for the hittest stuff:
http://www.webwasp.co.uk/tutorials/b32-collision-detection/05.php
and this one bcoz I kinda want to have some gravity or so in my game…
http://www.lashf.com/flash/actionscript/gravity.htm
So I putted that together. I puted that gravity code on my MC called player.
than I made a wall how its writen in the first tutorial…
actualy its supoust to be so that the playerMC falls down and when it hits the wall(I mean the ground) it stops falling and stays one the ground like in real life… but in this case the player falls through the ground sooner or later. I tryed to figure it out myself but I could not get it to work…
so I wanted to ask if someone had probably any ideas how I could fix that…
ps: I never made anything that special in Flash so all I know is just some basic stuff lke making buttons or some animations… lol, nothin special… thats why I need tutorials… :s
[EDIT] nvm, it works now… still a few problems but atlast the player MC stoped falling through the ground… ^^