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.

Autotile z-depth ?

I gujess the title already explains it, I need a method to set the autotile's z-level. Here's what I've got so far...

Code:
    for i in 0..6
      autotile_name = $game_map.autotile_names[i]
      @tilemap.autotiles[i] = RPG::Cache.autotile(autotile_name)
      @tilemap.autotiles[i].z = -10 # my addition
    end

It gives me an undefined method error for the command 'z' for the bitmap. Well, I have no clue why this isn't working, but that's where you guys come into play ^_^
 
I can tell you without trying that this won't work, you have to refer to the autotile directly, else it'll set the whole scene to this level, which won't make sense, means it'll give you the same error for another reason...

Tried... what I said ^_^
 

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