Hi everyone, i want to suggest more options to the platform behavior just like:
*Diagonal directions for gravity (not just, up, down, right and left)
*Set Bumper velocity (wait the object reach a high level is realy boring)
*Double jump option
*Moving Platforms
*Automatic side scrolling
And thats it, if one of this options are already possible to do, just tell me how. Thanks
To get automatic scrolling, just tick the "Center view on me" option in the object you want to scroll to's Attributes.
Double jump is pretty easy to achieve by one's self. Just create a variable called "jump". When the player presses the jump key, set the jump value to 1. Then, make it to where if the player presses the jump key while the jump value is equal to 1, use the jump action in the characters platform behavior tab. When the player is on the ground, which can be checked through the events, set the jump value back to 0.
Moving platforms would probably be pretty easy. Essentially, you would need a bottom detector for the character, one that extends about 1 or 2 pixels below the character. For the platforms, they could each have a variable that has their speed. If the bottom detector is colliding with the platform, it can just add the platform's speed value to the X/Y speed value of the character.
I know these aren't the easiest methods, and the platform movement probably should have these, they really aren't all that hard to implement. Hope that helps.