1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

GMS 2 [SOLVED] Tile Animation Frame?

Discussion in 'Programming' started by Neptune, Aug 15, 2019.

  1. Neptune

    Neptune Member

    Joined:
    Jun 21, 2016
    Posts:
    1,035
    I'm rendering some animated tiles from another room to a surface, and I'm wondering if I can also get the current frame of their animation?
    I'm not sure how the built-in tile animation actually works, or if that value can even be retrieved from another room xD

    Alternatively, I can animate them myself when they're drawn, but I'd prefer to use the built-in way if possible :)

    Any info is appreciated!
     
  2. ThePropagation

    ThePropagation Member

    Joined:
    May 16, 2017
    Posts:
    125
    Why does it have to be from another room? You can use tilemap_get_frame to get what animation you want I believe
     
    Neptune likes this.
  3. Neptune

    Neptune Member

    Joined:
    Jun 21, 2016
    Posts:
    1,035
    Ah great, thanks! I have a world map room, and I'd like the player to be able to view the stuff mapped in there at any time -- from any room.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice