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.

Event Terrain

Well If you could... I need help making my game check if an event has a Tileset Graphic( Which doesn't matter) then the event would have a terrain tag and would work exactly like a regualr tile....
 
That means no terrain is defined for that tile.

Insert this below everything.

Code:
class Game_Character
  def character_terrain
    unless @tile_id == 0
      return $game_map.terrain_tags[@tile_id]
    end
    return 0
  end
end

You should only have to use:

<game_character>.character_terrain

Such as

$game_map.events[event_id].character_terrain
 
Sorry for the necropost but.... Um... What I'm trying to do is, if you've ever played frogger... You know how you can jump of moving platforms and you actually move onto it and you move as it moves... But this doesn't seem to work... Eventing isn't working either....
 

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