¿Local Co-Op? - RPG Maker VX Ace

Pochi

Villager
Member
Joined
Apr 7, 2019
Messages
17
Reaction score
1
First Language
English, Spanis
Primarily Uses
RMVXA
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!
 

hiddenone

Lurker Extraordinaire
Global Mod
Joined
Feb 19, 2014
Messages
2,497
Reaction score
5,334
First Language
english
Primarily Uses
RMMZ

I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
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.
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
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.
 

Pochi

Villager
Member
Joined
Apr 7, 2019
Messages
17
Reaction score
1
First Language
English, Spanis
Primarily Uses
RMVXA
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 :)
 

Pochi

Villager
Member
Joined
Apr 7, 2019
Messages
17
Reaction score
1
First Language
English, Spanis
Primarily Uses
RMVXA
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?
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
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.
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.
 

Pochi

Villager
Member
Joined
Apr 7, 2019
Messages
17
Reaction score
1
First Language
English, Spanis
Primarily Uses
RMVXA
Oh, right.
I understand, well, thanks you!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top