Discussions

SmileBASIC Community

Chickens32Chickens32

10/23/2016 2:36 PM ·Spoilers

Open Closed

Platforming Code

Could someone send me code for platforming, like, Mario-style. I need it for a boss fight.

Advertisement

Comment

This post has no comments.

  • FGW

    10/23/2016 9:24 PM ·Spoilers

    An important thing to remember is that a variable will be needed for Y-speed. Upon jump, set it to a certain negative value (depending on negative jump height.) Every frame, set the player's Y location to its current Y location plus the variable, but also add a certain amount to the variable (depending on gravity speed), until landing.

    Yeahs1
    Played
  • Could you show me an example?

    Yeahs0
    Played
  • FGW

    10/27/2016 4:55 PM ·Spoilers

    Try to visualize your character jumping from one side of the screen to the other. In geometry, this path is known as a "parabola."

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2J-ZAG-FE6A

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: