Changing player?

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Changing player?

Post by Danimita92 »

Hi everyone, I'm a little new to this program and I'd like to ask a question I couldn't find the answer to in the forums:

How can I change my player's actor in mid-game. For example, I'd want to change my player into another one who has different animations, when I reach a certain spot. Like having the character walk like in a sort of "combat mode", only when I want it to.

Thanks for reading.
User avatar
gamemakerg
Posts: 69
Joined: Wed Jun 06, 2007 1:50 am
Location: what are you a stalker stop looking at this!!!!!
Contact:

Re: Changing player?

Post by gamemakerg »

You could make a change level entity and in the player setup and player start make it so its the charater that you want changed.
ex.
player: john
do x y and z then
change level
player: joe
My company homepage Please visit and pm me feedback on games.
http://www.blindfire.net
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Changing player?

Post by Danimita92 »

Yeah but wouldn't that make a Loading screen in midgame? I'd like it to be smoothly, so you can't notice the difference between characters (because it'll be the same model just with different animations.
User avatar
gamemakerg
Posts: 69
Joined: Wed Jun 06, 2007 1:50 am
Location: what are you a stalker stop looking at this!!!!!
Contact:

Re: Changing player?

Post by gamemakerg »

wait so all you want to do is change the animations?
if you don't want to change the model than keep both having the same animations
My company homepage Please visit and pm me feedback on games.
http://www.blindfire.net
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Changing player?

Post by Danimita92 »

Okay I'll tell you what I'm thinking of doing. The character walks around normally, then when I activate an entity or trigger or whatever, he gets out his weapon and walks in a sort of "combat mode", you know? He walks like in a sort of guard.
User avatar
gamemakerg
Posts: 69
Joined: Wed Jun 06, 2007 1:50 am
Location: what are you a stalker stop looking at this!!!!!
Contact:

Re: Changing player?

Post by gamemakerg »

im not completly sure how to do this maybe someone else does but you could have it so he doesnt have any weapons and then when he reaches a certain point he could pick one up?
you have to ask someone that is good at scripting because i have no idea.
My company homepage Please visit and pm me feedback on games.
http://www.blindfire.net
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Re: Changing player?

Post by darksmaster923 »

this requires familiarity with the scripting language. you have to make whats called a scripted player. the built in player does not have enough functionality to do that. it is bascially a pawn that is a player.
Herp derp.
User avatar
vagoneta
Posts: 25
Joined: Fri Jan 04, 2008 8:32 pm

Re: Changing player?

Post by vagoneta »

Its not the first time that im listening about 'scripted player' or 'script player'. Please, tell me more about it :D
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Changing player?

Post by Danimita92 »

I'd imagine it being a player configured with scripts, right?
User avatar
Sph!nx
Posts: 297
Joined: Thu Feb 22, 2007 7:26 pm

Re: Changing player?

Post by Sph!nx »

Well, haven't gotten around to do some scripting yet, but my guess its scripted like an NPC or enemy pawn but with more features and animations and such. Then that newly created pawn must be assigned to be controlled by the player.

Not really sure though, but this is what I make of it.
Regards Sph!nx

Sven Co-op, DevEd: Development & Editing
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: Changing player?

Post by Juutis »

vagoneta wrote:Its not the first time that im listening about 'scripted player' or 'script player'. Please, tell me more about it :D
Basically it's a pawn just like any NPC but instead of being independent it checks if keyboard keys or mouse keys are pressed and then reacts accordingly. For example you can make it check if W is pressed and then move forward. Creating a scripted player lets you do basically anything with your main character, so scripting is really worth learning.
Pain is only psychological.
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Changing player?

Post by Danimita92 »

Hmm... interesting, I'll definetly learn it.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: Changing player?

Post by QuestOfDreams »

If you only need different animations it might be possible to just change the player's weapon via a script (SetPlayerWeapon). Weapon animations override the default animations of the player.
User avatar
gamemakerg
Posts: 69
Joined: Wed Jun 06, 2007 1:50 am
Location: what are you a stalker stop looking at this!!!!!
Contact:

Re: Changing player?

Post by gamemakerg »

thats what i ment to say i just was'nt shure what it was called
My company homepage Please visit and pm me feedback on games.
http://www.blindfire.net
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Changing player?

Post by Danimita92 »

QuestOfDreams wrote:If you only need different animations it might be possible to just change the player's weapon via a script (SetPlayerWeapon). Weapon animations override the default animations of the player.
Never mind, I'll use a scripted player, because I'm also planning to be able to switch the player midgame. I know it'll take ages, but I think it's the best way.
Post Reply