Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [Eventing]RPG Maker XP 2 Player (Essentially), I discovered a way to allow a 2nd person to control a NPC with events.
Despair From The...
post May 13 2009, 02:41 AM
Post #1


Level 5
Group Icon

Group: Member
Posts: 61
Type: Artist
RM Skill: Skilled




Using Conditional Branches, I found a way to control an NPC using W,A,S,D. I wasn't sure if this was something that's already been done. So I figured I'd let you know, and post a bit of an example. It isn't a demo, I haven't really added instructions or anything. Figured I'd do that in this thread. First of all, the main character is still controlled as usual. The 2nd person uses: W=Up, A=Left, S=Down, and D=Right. Because of the way it is done, if you press any button for more then a split second, you'll walk 2 spaces instead of 1. I'm still working on a way to fix that. Also, I made it so if you press Q, the 2nd player will automatically run through all obstacles, and go straight to player 1. I figured this would be useful, seeing as 2nd player moves slightly slower then player 1. Player 2 cannot activate events, as far as I'm aware. Haven't really tested it. But Player 2 is also physical, so it will interrupt the movement of both player 1, and other events. This could be an issue, unless taken into account. Anywho, this is something I thought other people could use, and advance. So instead of listening to me ramble on, I'll just post the example game I made. If you have any questions just ask. Until then I'll probably continue to work on it.

Attached File  2_Player.zip ( 187.56K ) Number of downloads: 162


You'll need a program to unzip it, but that's the only way I can think of to post it. Tell me what you think, and feel free to ask any questions.


__________________________
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Nuque
post Jul 6 2009, 01:36 PM
Post #2


Level 8
Group Icon

Group: Revolutionary
Posts: 118
Type: Developer
RM Skill: Skilled




Well, the only bad part is this can't be done on VX wihtout a script, conisdering the lack of a Button Input fundtion.

This post has been edited by Shantanu: Jul 6 2009, 01:37 PM


__________________________
[Show/Hide] Koushaku Productions

Current Koushaku Productions Members:
2
Current Koushaku Productions Projects: 3
Go to the top of the page
 
+Quote Post
   
Oko
post Jul 6 2009, 03:55 PM
Post #3


Level 13
Group Icon

Group: Revolutionary
Posts: 233
Type: Writer
RM Skill: Intermediate




QUOTE (Shantanu @ Jul 6 2009, 05:36 PM) *
Well, the only bad part is this can't be done on VX wihtout a script, conisdering the lack of a Button Input fundtion.

VX has a Button Input function. It's on page 4 of the conditional branch menu--if Button [x] is pressed. There's Up, Down, left, Right, A, B, C, X, Y, Z, L, and R.


__________________________

Go to the top of the page
 
+Quote Post
   
Nuque
post Jul 8 2009, 11:35 AM
Post #4


Level 8
Group Icon

Group: Revolutionary
Posts: 118
Type: Developer
RM Skill: Skilled




QUOTE (Okoga @ Jul 6 2009, 03:55 PM) *
QUOTE (Shantanu @ Jul 6 2009, 05:36 PM) *
Well, the only bad part is this can't be done on VX wihtout a script, conisdering the lack of a Button Input fundtion.

VX has a Button Input function. It's on page 4 of the conditional branch menu--if Button [x] is pressed. There's Up, Down, left, Right, A, B, C, X, Y, Z, L, and R.


Yea, but how do you make a game with 2 players with only those buttons? 8 for moving, 2 for selection, 2 for deselection, 0 for anything else.


__________________________
[Show/Hide] Koushaku Productions

Current Koushaku Productions Members:
2
Current Koushaku Productions Projects: 3
Go to the top of the page
 
+Quote Post
   
Imsosupafly
post Jul 23 2009, 06:59 PM
Post #5


Level 2
Group Icon

Group: Member
Posts: 20
Type: Artist
RM Skill: Beginner




Ill try it and mess with it, I might be able to fix a few of those problems, if so Ill post back, if not I will probably hang my head in shame. . . laugh.gif

I made some progress. I switched it to common events and set it so instead of turning he just moves directly left, and then both players move at the same speed. I tried to make it so player two could touch events too, but I couldn't get it to work so I tried to script a little bit and here is what I tried.

I tried to copy almost the entire Game_Player script, except edit the class and functions so It would work for player two, I also took away the screen moving scripts so it wouldn't interfere with the other script with player one.

Unfortunately I messed something up and I kept getting syntax errors, but Im sure if I would have been able to get that to work, it would have ran a lot better than having player two as an event, but instead as another player.

Maybe its not possible though, but it could be. Im very new to scripting, and Im sure there were other scripts that I needed to make that work, but if you could figure it out, it would be a pretty good script to use. (If its possible)

Anyways, Im going to have to hang my head on this one sleep.gif

This post has been edited by Imsosupafly: Jul 23 2009, 07:53 PM
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Despair From The Dark   [Eventing]RPG Maker XP 2 Player (Essentially)   May 13 2009, 02:41 AM
- - HeroOfHyla   Thanks for contributing to the forum! Unfortun...   May 24 2009, 12:30 PM
- - vdeijk   Nice idea. But both players would have to be using...   Jun 29 2009, 11:11 PM
- - Bandito   It is very possible to make a game like this but o...   Jul 5 2009, 09:57 AM
|- - Bandito   Disregard this post.   Jul 6 2009, 08:46 PM
- - Redd   Pretty cool, if I must say so myself. I'll def...   Jul 24 2009, 03:44 PM
|- - Imsosupafly   QUOTE (Redd @ Jul 24 2009, 04:44 PM) Pret...   Jul 25 2009, 06:40 AM
- - ninjaheldransom   im going to try this in my game, but im not sure t...   Jul 25 2009, 01:11 PM
- - Jamopc   This would be awesome for making a one player game...   Sep 5 2009, 11:25 PM
- - Despair From The Dark   Wow... I haven't been to the forums for quite ...   Oct 29 2009, 08:38 PM
|- - BlaZe22   I'm aware I'm bumping a year old thread, a...   Nov 30 2010, 09:37 PM
- - roxanne410   QUOTE (Despair From The Dark @ May 13 2009, 0...   Dec 9 2010, 05:20 PM
- - Xyore   I've managed to place a switch that allows inc...   Dec 25 2010, 02:24 AM
|- - Redd   QUOTE (Xyore @ Dec 25 2010, 03:24 AM) I...   Dec 25 2010, 03:25 AM
- - Xyore   I've recreated the common events to make them ...   Dec 25 2010, 06:39 PM
- - Klokinator   There was a game that came out some time back (For...   Dec 28 2010, 12:15 AM
- - Xyore   The game you're talking about happens to be Ca...   Dec 28 2010, 01:30 AM
- - Naridar   It could've also been FireBoy and WaterGirl fr...   Feb 7 2011, 11:29 AM
- - arnquist   I found something similar to this (or maybe the sa...   Jan 22 2012, 12:09 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 07:28 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker