okay this is mainly for RM 2k(3) but if people want i can post the rmxp verson
Screen Shots:
okay so what this is is a multiplayer but insted of it being over the internet you play off one key board so here's the coding:
<>Variable: V[0001: X position hero] Set, Hero, X coord.
<>Variable: V[0002: Y position hero] Set, Hero, Y coord.
<>Variable: V[0003: X position player 2] Set, Player 2, X coord.
<>Variable: V[0004: Y position player 2] Set, Player 2, Y coord.
<>Input key: V[0005: Player 2 walks]
<>If: V[0005: Player 2 walks], 11
…<>Variable: V[0006: X hero + – X player2] Set, Hero, X coord.
…<>Variable: V[0006: X hero + – X player2] –, 8
…<>If: V[0006: X hero + – X player2], V[0003], (<)
……<>Move event: Player 2 , Move left
……<>
…
……<>Move event: Player 2 , Face left
……<>
…
…
…<>If: V[0005: player 2 walks], 12
……<>Variable: V[0007: Y hero + – Y player2] Set, Hero, Y coord.
……<>Variable: V[0007: Y hero + – Y player2] +, 6
……<>If: V[0007: Y hero + – Y player2], V[0004] (>)
………<>Move event: Player 2, Move down
………<>
……
………<>Move event: Player 2, Face down
………<>
……
……<>
…
……<>If: V[0005: Player 2 walks], 13
………<>Variable: V[0007: Y hero + – Y player2] Set, Hero, Y coord.
………<>Variable: V[0007: Y hero + – Y player2] –, 6
………<>If: V[0007: Y hero + – Y player2], V[0004], (<)
…………<>Move event: Player 2, Move up
…………<>
………
…………<>Move event: Player 2, Face up
…………<>
………
………<>
……
………If: V[0005: Player 2 walks], 14
…………<>Variable: V[0006: X hero + – X player2] Set, Hero, X coord.
…………<>Variable: V[0006: X hero + – X player2] +, 9
…………<>If: V[0006: X hero + – X player2], V[0003] (>)
……………<>Move event: Player 2 , Move right
……………<>
…………
……………<>Move event: Player 2 , Face right
……………<>
…………
You just make the same common event for player 3. You just have to change
the variables. Create new variables (X coord, Y coord, X hero + – X player3, Y hero + – Y player3 and Player 3 walks).
the input keys. Just give him the keys 6, 7, 8, 9, and 0 for example.
the move event. Do not let player 2 walk, but player 3.
And do the very same for player 4.
If you want an event player 2 can “open”, just set it to “on hero’s touch” and “below hero”. In the event commands, you just do:
<>Input key: V[0005: Player 2 walks]
<>If: V[0005: Player 2 walks], 15
hope you enjoy!