Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Changing the Player's Graphic

Hello all,
I want to change a party member's graphic using global variables. That way, i shouldn't get any initialization errors no matter where i insert the code lol.

I'm thinking something like:

$game_party.actors(i).character_name = "filename-of-picture"

However, this doesn't seem to be working. Any suggestions?

Any help would be really appreciated,
~Thanks.

PS: I know that there should be square brackets around the "i" but that makes the text in italics so i made them round...
 

khmp

Sponsor

Code:
$game_player.character_name = 'filename'
$game_player.refresh

That italic stuff can be avoided by placing the code within code tags. I'm curious as to why you would want to change other actor's character name.

Good luck with it RomanMelnik! :thumb:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top