- Joined
- Aug 13, 2015
- Messages
- 41
- Reaction score
- 1
- First Language
- Romanian
- Primarily Uses
I have a section in my game where the player is on a conveyor belt and is dodging incoming crates.
I had an area where the player couldn't move up or down, I made a couple of crates and set them to move down so that the player has to dodge them, but when I started nothing happened. I then found out that events don't move if they are offscreen.
I even tryed to force them to move, by having a separate event that runs the move route, but still no results.
I need to have these events move despite being offscreen. How do I go about this?
I found this script:
# Put [update] in the event's name and the move route will always update.## ~Kreadclass Game_Event < Game_Character #-------------------------------------------------------------------------- # * Determine if Near Visible Area of Screen #-------------------------------------------------------------------------- alias_method
krx_alfix_ge_nts?, :near_the_screen?) def near_the_screen?(dx = 12, dy = 8) # YEA compatibility if $imported && $imported["YEA-CoreEngine"] dx = dy = nil end # YEA compatibility return true if @event.name.include?('[update]') return krx_alfix_ge_nts?(dx, dy) endendbut it doesn't work...
It only updates events that have begun moving, it doesn't help start their move route if they're offscreen
I had an area where the player couldn't move up or down, I made a couple of crates and set them to move down so that the player has to dodge them, but when I started nothing happened. I then found out that events don't move if they are offscreen.
I even tryed to force them to move, by having a separate event that runs the move route, but still no results.
I need to have these events move despite being offscreen. How do I go about this?
I found this script:
# Put [update] in the event's name and the move route will always update.## ~Kreadclass Game_Event < Game_Character #-------------------------------------------------------------------------- # * Determine if Near Visible Area of Screen #-------------------------------------------------------------------------- alias_method
It only updates events that have begun moving, it doesn't help start their move route if they're offscreen
Last edited by a moderator: