Problem with the fall through setting in events

Status
Not open for further replies.

Zino97

Villager
Member
Joined
Mar 17, 2014
Messages
25
Reaction score
0
First Language
Russian
Primarily Uses
Hi there
so basicly i have a Event called butterfly it does nothing but looking nice and fly arround i set a moving route, above player, and
the fall trough setting on so the butterfly won´t stuck colliding on other events or invisible ones so that they can fly through other npcs and stuff like this but there is one problem if i set fall through in the event it also flys through walls and other unpassable tiles
so my question is if its possible to make an event on fall through but at the same time unable to pass unpassable tiles so that it just can pass other events.

I tried do do it with region events have its trigger on event collision and evrey time the event collides on the unpassable tiles a switch is activated and turn off the fall through setting so that they cant pass events and unpassable tiles anymore and ones they dont collide anymore the switch is turning back off but thats a very ugly way to do it and turns evrey butterfly to be unable to pass through events and not only th one who hits the region event

so if there is any script for doing it or any possible line i could edit in Scene_Map ore something like this please let me know
and sorry for my bad english :)
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
I have my own personal patch for this.
Code:
class Game_Character
  alias ed_passable? passable?
  def passable?(x,y,d)
    x2 = $game_map.round_x_with_direction(x, d)
    y2 = $game_map.round_y_with_direction(y, d)
    return true if debug_through? && self == $game_player
    return false if $game_map.terrain_tag(x2,y2) == 7 || 
                    $game_map.region_id(x2,y2) == 63
    ed_passable?(x,y,d)
  end
end
If you set either terrain tag to 7 or region id to 63, they will unable to move through tagged tiles.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
just a minor note - the setting is Through. Not Fall Through. It just allows an event (or the player, as you can apply it via a move route) to go through other events and tiles that are normally not passable.
 

Zino97

Villager
Member
Joined
Mar 17, 2014
Messages
25
Reaction score
0
First Language
Russian
Primarily Uses
@TheoAllen Thanks man this is what i was searching for :D

This thread can be closed now
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Zino97 I don't know how you managed to access Mod messages, or maybe you copy/pasted from another post, but under no circumstances can you post that, or try and take Mod actions.

If your query is fully resolved please Report your opening post and ask for it to be closed .

And now for the real thing.
[closed]IgnoreMe[/closed]
 
Last edited:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top