¿Local Co-Op? - RPG Maker VX Ace

Hi, everyone!
My name is Pochi, and, well... i'm new in this kind of things, like RPG Maker.

Well, i am working on a project since last year, but I need help with something...

I need a script of two players co-op, cuz' my game have already 20 characters and it will be very fine if a friend can play with you.

I already usted the script of the user "Tsukihime", but it have the next glitches:

• The 2P have only the sprite of the first character in the party, it can't be changed.

• When you enter in a teleport event, the 2P appears in the coordinates of the position (The x and y thing) it was in the anterior map. If the player was in the 008,026 position, in the other stage will appear at the same exactly position, getting stuck in walls or even can't be seeing for the player.

Well, he did a really good job I think, but that little errors make it harder to use it.

I hope I can find some help...
I can't pay with money, cause my project is totally free.

So, idk...
(I need it for VX ACE).

This is my first post, ¡I really don't know how this things works!

I've moved this thread to RGSS3 Script Requests. Thank you.

If you could provide a link to tsukihime's script we might see if those things can be fixed. The teleport one looks easy to solve to me.
If you could provide a link to tsukihime's script we might see if those things can be fixed. The teleport one looks easy to solve to me.

https://www.rpgmakercentral.com/topic/4128-simple-2-player-script-development/

Is this.
Ok, entering walls should not be an issue. You just have to set new coordinates for the second player in your transfer event. You can do that using tue following:
Code:
$game_player2.moveto(x, y)
If you want player 1 and player 2 to be transferred to the same position that can be done by editing how the reserve_transfer method works, but it highly depends on how you want to implement it.

The followers thing requires a bit more investigation, that is something I cannot do from mobile.
Ok, entering walls should not be an issue. You just have to set new coordinates for the second player in your transfer event. You can do that using tue following:
Code:
$game_player2.moveto(x, y)
If you want player 1 and player 2 to be transferred to the same position that can be done by editing how the reserve_transfer method works, but it highly depends on how you want to implement it.

The followers thing requires a bit more investigation, that is something I cannot do from mobile.
Ook, the sprites of the followers isn't is the most worrying error, but i can wait.

I will test the script in my project later, thanks 🙂
Ok, entering walls should not be an issue. You just have to set new coordinates for the second player in your transfer event. You can do that using tue following:
Code:
$game_player2.moveto(x, y)
If you want player 1 and player 2 to be transferred to the same position that can be done by editing how the reserve_transfer method works, but it highly depends on how you want to implement it.

The followers thing requires a bit more investigation, that is something I cannot do from mobile.
¡Oh, thanks!
I already test it and it's perfect. Thank you, I can use it too when I needed the player 2 moves to another site cause the event it's only for one character. (Like, part of the story)

You saved me! ~
¿How can i thank you?
A simple "thanks" is enough for such a small matter. However, I was investigating other things in the script you provided.

Taking a look at the original code it looks like it is not meant tho show followers. The sprite for each player2 follower is not created anywhere.
Code:
def create_characters
   th_multiplayer_create_characters
   @character_sprites.push(Sprite_Character.new(@viewport1, $game_player2)) # This only adds the player sprite
end

As you can see it only creates a single sprite. On top of it there are methods that define how each follower acts based on $game_player.
Spoiler: Here is what I mean
Code:
def visible?
    actor && $game_player.followers.visible
end

def update
    @move_speed     = $game_player.real_move_speed
    @transparent    = $game_player.transparent
    @walk_anime     = $game_player.walk_anime
    @step_anime     = $game_player.step_anime
    @direction_fix  = $game_player.direction_fix
    @opacity        = $game_player.opacity
    @blend_type     = $game_player.blend_type
    super
end

You need a script that changes all these things to be able to shot player 2 followers. On top of it I do not think it is worth the effort as you cannot change player 2 party composition.
Oh, right.
I understand, well, thanks you!

Original thread: https://forums.rpgmakerweb.com/threads/local-co-op-rpg-maker-vx-ace.107683/