Page 2 of 3

Re: A platform game

PostPosted: June 3rd, 2010, 6:16 am
by Buff_
What do you mean by "in a platform"?

Re: A platform game

PostPosted: June 3rd, 2010, 6:25 am
by Konradix
What scripts should i put in platform movieclip to make character stop falling.

Re: A platform game

PostPosted: June 3rd, 2010, 6:49 am
by Buff_
You need to give the platform an instance name of "ground". If you look at the coding I'm using, it says


Code: Select all
while (_root.ground.hitTest(_x, _y, true)) {

      tjump = false;
      _y--;
      grav = 5;


the "_root.ground.hitTest" means that when the character his something that has the instance name of ground, it stops.

The rest of it is so that you can jump when you hit the ground.

Re: A platform game

PostPosted: June 3rd, 2010, 11:22 am
by Konradix
I did everything you said an its not working! Mycomputer is not helping me as well! One click - laaaaags! Hes still falling through. I named movie clip "Character", named platform "ground" named everything u said and he is still falling. Im just annoyed because of PC. Im using normal Mario sprites from M&L: Superstar saga. What ive done wrong?
There is link wat i did: http://www.filefactory.com/file/b1fg0ab/n/Game.rar
Check it.

Re: A platform game

PostPosted: June 3rd, 2010, 11:34 am
by Buff_
I don't use that site, and not sure how to download it... seems untrustworthy. Can you use mediafire?

Re: A platform game

PostPosted: June 3rd, 2010, 12:02 pm
by Konradix
I uploaded it on Sendspace: http://www.sendspace.com/file/ltemxl
there is a Download link on bottom of the page.

Re: A platform game

PostPosted: June 3rd, 2010, 12:03 pm
by Buff_
What's a .rar file?

Re: A platform game

PostPosted: June 3rd, 2010, 12:07 pm
by Konradix
WinRAR. Just open it there will be folder with Game in it.

Re: A platform game

PostPosted: June 3rd, 2010, 12:09 pm
by Buff_
I can't open it, I don't have the program to do it. I'm using Mac, is there any way you can upload the direct flash document?

Re: A platform game

PostPosted: June 3rd, 2010, 12:13 pm
by Konradix