#How to do a switch characters in gameplay?

10 messages · Page 1 of 1 (latest)

mellow kettle
#

I'm working on a 3Dgame that allows the player to switch a character with another character in game. For example in 101 Dalmatians rescue puppies for ps1 has this switching character and is exactly what I'm looking for.

**Here is an link to a video on what I am talking about: **https://drive.google.com/file/d/1Pv34V7sGlUUiTyVAvwoNmnA3rhfLc0sC/view?usp=share_link
I cannot find any videos on YouTube that show this, so I had to record the game and upload it to google drive myself.

On the idea:
You are playing as character 1 and you don't see character 2, you press a button to switch over to character2 and as replaced with character 1 you see character 2 instead.

**Problem: **I can't find any tutorials on subject like this or similar idea on how to do this even for unity, not even for Godot. I can imagine it being difficult to make but it something that I been trying to get into my game for a long time.

P.s I'm aware that the character would either be hidden or something like that for the other character to show in it's place. I'm assuming you also have to have it share in a same node? Not sure anything else other then that.

My idea goal is to:

have 2 characters that are playable.
To be able to hide the character2 while playing the character1
By pressing a button I can switch between the characters while in game as shown in the video above.

If anyone who can provide me useful sources, tutorials and of course give me ideas on how I could do this I be truly grateful. It's something I been searching for years..

**Note: **I'm still new to godot and still learning. I'm also a moderate beginner in coding but I have moderate beginner knowledge on it with C# and webdesign in general, so it wouldn't be that hard for me to understand regardless of me still learning with coding. c:

proper kraken
#

I honestly don't think you're going to find a tutorial on this. This is very niche. With that said, your idea of hiding and showing characters would probably work. You could probably instantiate/queue free your characters as well instead of hiding them.

#

From there it's just about figuring out how to transition from one character to the other visually.

#

If I were you, I would break this down into smaller problems and slowly build up until you get to where you want

mellow kettle
#

Ok. Well as I said above, I did mention I couldn't find tutorials on the subject, I just thought maybe people can help me find something like it to give an idea how I could do it?

proper kraken
#

The way you're thinking about doing it is probably how you would do it

paper fable
#

probably search how instancing/queue free works and how to make a camera follow/connect into the new character instanced using remoteTransform

it is as what you think it to be.
the other one get hidden and another one shows up.
quee free the other one and instance the other one and make the camera follow/connect to the new instanced player

mellow kettle
#

Okay, I'll search up videos on that subject and see where it gets me. ^ ^

#

Thanks for that idea. c:

mellow kettle
#

I found something like this but not quite what I had in mind, I'll start small like WhtLOtus suggested. https://www.youtube.com/watch?v=DyuO19izRZU

In this tutorial, I'm going to show you how you can add a simple selection screen to your game.

0:00 intro
1:00 Character selection scene
2:00 Characters scenes
4:45 Selection area script
8:40 Character selection script
11:30 Selection area script (continue)
16:45 The wave
17:00 Global script (autoload)
19:50 Level script
22:30 Running the sce...

▶ Play video