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.

Force Move Down moviment

I Need a code to force the hero move down and only stop the move_down moviment if a tile block or a event is in the way.

i tryed "force_move_route" but my player only moves one step.

Someone can help?
 
I'm guessing you either want to do some kind of vertical scrolling game, in which case what you have in mind would work, or you're trying to do a gravity script, in which case what you're trying to do will miserable fail.

Anyway, I guess for what you planned, this would be the (lazy, but working ^^" ) code for it:
Code:
class Scene_Map

  alias movedown_upate update

  def update

    movedown_update

    $game_player.move_down

  end

end
 

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