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.

how do you change a events graphic to the graphic with a variable file name?

hey all, basically this is what I want to do
set a variable, 1-7, then change the event graphic to the graphic with the name of the variable (being: 1.png, 2.png, 3.png etc...)

the code i have so far is

$game_map.events[event_id].character_name = '[$game_variables[26]]'

the part in red is what I am not sure of. :-/

follow up, how would I set wich row the events graphic is displayed (1-4)?

thanks!
 

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