- Joined
- Jun 16, 2015
- Messages
- 207
- Reaction score
- 117
- First Language
- English
- Primarily Uses
Hello there again,
I had this code that used to work in rpg maker vx ace:
$game_player.character_index = 1Now I'm trying this:
if ($gamePlayer.isDashing()){ $gamePlayer.characterIndex = 1;}But I'm not sure how to work with character index to change it properly to 1...I feel like the code should work, but it gives me back ....
Wow nvm right when I typed it out I solved the problem, I've been cracking away at it for a couple hours. After pressing F8 and debugging the values I realized you have to put an underscore under characterIndex like:
if ($gamePlayer.isDashing()) { $gamePlayer._characterIndex = 1; } else if (!$gamePlayer.isDashing()) { $gamePlayer._characterIndex = 0; }Thanks this works now. I'm still posting the topic for reference (google search for people who are clueless like I was) but mods please lock it if you want.
I had this code that used to work in rpg maker vx ace:
$game_player.character_index = 1Now I'm trying this:
if ($gamePlayer.isDashing()){ $gamePlayer.characterIndex = 1;}But I'm not sure how to work with character index to change it properly to 1...I feel like the code should work, but it gives me back ....
Wow nvm right when I typed it out I solved the problem, I've been cracking away at it for a couple hours. After pressing F8 and debugging the values I realized you have to put an underscore under characterIndex like:
if ($gamePlayer.isDashing()) { $gamePlayer._characterIndex = 1; } else if (!$gamePlayer.isDashing()) { $gamePlayer._characterIndex = 0; }Thanks this works now. I'm still posting the topic for reference (google search for people who are clueless like I was) but mods please lock it if you want.
Last edited by a moderator:
