Obtain Event's Sprite Filename

Discussion in 'Learning Javascript' started by Rink27, Nov 9, 2017.

Thread Status:
Not open for further replies.
  1. Rink27

    Rink27 Veteran Veteran

    Messages:
    222
    Likes Received:
    12
    Location:
    Caribbean
    First Language:
    English
    Primarily Uses:
    RMMV
    Is it possible to retrieve an event's current sprite filename? (such as "Nature", "Evil", "Monster", etc) [and also its sprite index number]

    Something like:
    Code:
    $gameMap.events[this._eventId].spriteFilename
    (above doesn't work)
     
    #1
  2. Shaz

    Shaz Veteran Veteran

    Messages:
    37,349
    Likes Received:
    11,146
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    $gameMap.event(this._eventId)._characterName
    $gameMap.event(this._eventId)._characterIndex

    I think. Don't have MV with me so can't check right now.
     
    #2
    Indsh and Rink27 like this.
  3. Rink27

    Rink27 Veteran Veteran

    Messages:
    222
    Likes Received:
    12
    Location:
    Caribbean
    First Language:
    English
    Primarily Uses:
    RMMV
    Yes, both work. Thank you.
     
    #3
  4. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,400
    Likes Received:
    10,415
    First Language:
    English
    Primarily Uses:
    RMVXA

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #4
Thread Status:
Not open for further replies.

Share This Page