okok.
at the beginning of your script you add:
Code: ags
This introduces a global int variable which holds 0 or 1 depending on whether the player is a human or a cat right now.
Then you code the initial value of this var (lets say your player begins the game being a human...).
You add in the game_start func:
Code: ags
ok, then you have a inventory item which you can use and it changes your appearance...
so you go to the inventory item editor, select your item and click "on use:"
in this script you write simply:
Code: ags
which basically just changes the variable to 0 if its 1 or to 1 if it used to be 0 and then changes your view.
now you have this var set up correctly.
now lets say you want the player to only be able to do something if he's a cat. then you would write:
Code: ags
thats it.
hope it helps.
at the beginning of your script you add:
int playerishuman;
This introduces a global int variable which holds 0 or 1 depending on whether the player is a human or a cat right now.
Then you code the initial value of this var (lets say your player begins the game being a human...).
You add in the game_start func:
playerishuman = 1;
ok, then you have a inventory item which you can use and it changes your appearance...
so you go to the inventory item editor, select your item and click "on use:"
in this script you write simply:
if (playerishuman = 0)
{
Ã, playerishuman = 1;
Ã, SetCharacterView (EGO, NUM_OF_VIEW_WITH_PLAYER_AS_HUMAN);
}
else
{
Ã, playerishuman = 0;
Ã, SetCharacterView (EGO, NUM_OF_VIEW_WITH_PLAYER_AS_CAT);
}
which basically just changes the variable to 0 if its 1 or to 1 if it used to be 0 and then changes your view.
now you have this var set up correctly.
now lets say you want the player to only be able to do something if he's a cat. then you would write:
if (playerishuman == 0)
{
Ã, // what the player should do...
}
thats it.
hope it helps.