Charas-Project

Game Creation => Requests => Tutorials => Topic started by: rm2k3_rulez on May 22, 2008, 05:15:50 AM

Title: I know how to make a 2nd player.
Post by: rm2k3_rulez on May 22, 2008, 05:15:50 AM
Ok just go to common events and make a parallel process with the switch called 2Player or something. Now go to the map and make an event and make it turn on the switch 2Player and call the event 2PLayer. Now back to the Comon Event. Enter this and it should work all the branches you make make sure they dont have the else condition.

KeyInputProc:[Variable called 2Player and make the key the number keys.]

Branch if Var [xxxx:2Player] is 12[ make a variable called 2Player also]
       Move Event 2Player:Move Down.
End
Branch if Var[xxxx:2Player] is 14
       Move Event 2Player:Move Left
End
Branch if Var[xxxx:2Player] is 16
       Move Event 2Player:Move Right
End
Branch if Var [xxxx:2Player]  is 18
       Move Event 2player:Move Up
End

Instructions on how to use:
After you did all the coding and such talk to the event that you called 2PLayer in your game. It will then turn on teh common event and now you can move him with the numbers 2,4,6, and 8. 2 is down 4 is left 6 is right and 8 is up. To move the event withough making the hero move to you're going to have to use the top number keys instead of the keypad. I will make a video of this and post it on youtube so everyone can watch and see it in action. PLease comment your thoughts and tell me if you liked it.