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.

Help with modifying vehicle movement

I did a search and it did not turn up what I needed so if this has been answered before please forgive me.

What I want to do is modify the movement of the 'Boat' vehicle so that instead of only working water tiles (or so it appears to me) that it will work on all land tiles and NOT water tiles or tiles that are blocked off (hence why I don't change it to the Airship movement type or just make the airship the vehicle I want to use because that flies over blocked off tiles)

I get the feeling it can be altered in

Game_Vehicle
On line 64 (which deals with vehicle 'Priority')

But scripting and I do not mix well at all.

Any and all help is appreciated and if something needs to be clarified you can PM me about it or post it here, whichever is more convenient for you.

Thankyou
 
[rgss]class Game_Map
  def boat_passable?(x, y)
    return passable?(x, y, 0x01)
  end
end
[/rgss]

The important thing is the 0x01, that makes passability work like walking. If you wanted ships to work like this, just do the same thing with "ship_passable?".
 

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