Moving Events & Player Touch / Event Touch

● ARCHIVED · READ-ONLY
Started by IceSage 6 posts View original ↗
  1. I've run into a bit of trouble while trying to do some simple things.

    I've been using RPG Maker for years upon years now, so I know how things are done. However, I haven't had this problem before until Ace. (I think, I'm unaware if it's acted like this before.)

    I'm trying to have a scene where players are standing still in a way, and have to avoid events coming towards them.

    When the events collide with the player, nothing happens until the player actually moves. I've tried, Player Touch, Event Touch... had it Same Position, or Below... no matter what combination I try, the events don't respond unless I physically move the player myself.

    My goal is to have these events hurt the player when the event touches them, not vise versa. 

    Perhaps I'm overlooking something extremely basic.. so I'm posting an extremely basic question.

    I could be totally derping out right now, who knows? 

    Any tips would be appreciated!
  2. I have this problem just a few days ago. Hi here's a snippet by the lovely Yami.

    Code:
    class Game_Event < Game_Character    def check_event_trigger_touch(x, y)    return if $game_map.interpreter.running?    if @trigger == 2 && $game_player.pos?(x, y)      start    end  end    alias testtee_move_straight move_straight  def move_straight(d, turn_ok = true)    testtee_move_straight(d, turn_ok)    check_event_trigger_touch(@x, @y)  end  end class Game_Player < Game_Character    def start_map_event(x, y, triggers, normal)    return if $game_map.interpreter.running?    $game_map.events_xy(x, y).each do |event|      if event.trigger_in?(triggers)        event.start      end    end  end  end
  3. I'll plop it in and see if it works! But it's written by Yami so I have no doubt it'll work. Usually trust their stuff 100%. Unless I reply back, assume it worked. Thanks for the help!
  4. A very interesting issue. I'd love to take a look at your project, if you are able to zip it up and post it somewhere? I find problems like this very intriguing.
  5. It's probably not as intriguing as you'd think, Shaz. I'm simply making a mini-game where the player needs to avoid obstacles. I used to do it all the time in previous makers. Hard to see due to the low quality, but I uploaded a video example on a test map on my project.




    1st Part is with the script provided. The 2nd is normal RPG Maker VX Ace operation.

    The events are set as: Through, Below Characters, Event Touch

    The issue is resolved now, thank you for the help with the script!
  6. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.