Stupid platformer question
This may sound really stupid but how do you prevent a character from falling off the screen? Normally, it is "x leaves play area...." => stop.
The problem is that my character sticks like glue to the lower end of the screen and does not move fluently.
Moreover, I want my character to bounce off another player like in Mario Bros. battle mode...but it only works during jumping as this "leaves play area => stop" also stops the bouncing.
What is the best way to keep a character with platform movement from falling off the screen? And making him land on platforms, not falling through them?
Re: Stupid platformer question
Your players sticks like glue because if the bottom is a platform, and your player hits it, all of its movements are supposed to stop. What you should do is you use the platform movement and you can set objects to ladders and platforms. That's what you need to do.
Re: Stupid platformer question
You can put a background obstacle on the sides of the screen where you don't want the player to fall off.
Re: Stupid platformer question
I have already done that.
Character 1 = platform movement. Character 2 = platform movement.
Added a backdrop. Obstacle type = obstacle.
If char. 1 collides with backdrop / obstacle then stop.
Still the same problem. When I select platform instead of obstacle the result is the same.
Re: Stupid platformer question
I just tried it and I don't see the problem. Want me to send you my file?
I sent you the file, of a basic platformer with platforms, obstacles, and ladders. I see no bugs in it.
Re: Stupid platformer question
Yes, send it please. Did you already send it? I did not get it.
Ah, you pm-ed me...got it, thanks. :)
Re: Stupid platformer question
Ok...I tested it. I built my level just you did. My problem is something different. I added a second player. When player 1 runs into player 2 they should bounce. This is my problem. They do not bounce on platforms, only during jumps.
In my level player 1 just stops.
I want the players to bounce like in Super Mario Bros.
http://www.x-arcade.com/service/News...%20subgame.jpg
Here you can play a flash version if you do not know how the players bounce in this game.
http://www.xgaming.com/newsletter/august05.shtml
They should be able to bounce each other off platforms or into traps. Moreover, they should not bounce alike but the faster a player is the more the other player should be pushed.
If player 1 collides with player 2 and speed player 1 > player 2 then player 1 should bounce only a bit while player 2 should be pushed away more strongly.
It is not that difficult but it does not work at all as players just don't bounce on platforms.
Here is my file:
http://www.llcp.at/temp/test.mfa
Re: Stupid platformer question
I was actually replying to you saying that they stuck like glue to the bottom of the screen. I'll check it out for you!
What is the jump button for player two? You didn't leave any instructions aside from my own ;)
Nevermind. Player two jump is Q ;)
Re: Stupid platformer question
Yes, jump is Q. Do you have any results of your test?
Re: Stupid platformer question
I see what you mean, but I'm not into platformers much, and its been a while since I've done one, but I came up with part of it. You're going to have to compare each player's speed to see who's going faster, and the one that isnt bounces farther. I don't know how to do the bounce though.