Hello all,
I am using multiple yanfly plugins but the one i have a problem with is this
Yep - Event Hitbox Resize
my problem is this
I have 3 images of a rock
black x means you can pass behind it
Red x means you can't
Small Rock size 48 by 48
x
Big Rock size 48 by 96 ( you can walk behind the top half)
x
x
Boulder size 144 by 144 ( you can walk behind the middle and top half)
xxx
xxx
xxx
for my Boulder i am using Yanflys Event Hitbox Resize in order not to let the player walk on the bottom right and left x
I also have a common event that when called does the following
Picture below
1.Binds the players position to Variables 6 & 7 accordingly
2.Checks what direction the player is facing ( example in picture is down )
3.Increases/Decreases variables 6 or 7 depending on players direction ( from example it Increases it by 1 )
4.Thanks to point 3 and using Get Location Info I am able to "see" what event ID is standing in-front of my player
and Bind it to Variable varEventID(Variable 14)
5.Checks if Self Switch inside the event facing the player is turned ON
6.IF yes asks player to break rock
IF no shows chat with writing Error ( ive numbered the errors)
Error - if player facing down
Error 2 - if player facing up
Error 3 - if player facing left
Error 4 - if player is facing right
Now here is where the strange thing happens
If I come at my Small Rock from any direction
I will get the msg "Break Rock"
same for Big Rock
but if i am facing the boulder like in the pictures below
i will get Error 4 Error
while if face the boulder from ANY other direction I will get the "Break Rock" msg
now i also cannot walk into the boulder from any direction so the Event Hitbox Resize works
Does anyone have any clue to why this is happening?
And thank you for your time.
I am using multiple yanfly plugins but the one i have a problem with is this
Yep - Event Hitbox Resize
my problem is this
I have 3 images of a rock
black x means you can pass behind it
Red x means you can't
Small Rock size 48 by 48
x
Big Rock size 48 by 96 ( you can walk behind the top half)
x
x
Boulder size 144 by 144 ( you can walk behind the middle and top half)
xxx
xxx
xxx
for my Boulder i am using Yanflys Event Hitbox Resize in order not to let the player walk on the bottom right and left x
I also have a common event that when called does the following
Picture below
1.Binds the players position to Variables 6 & 7 accordingly
2.Checks what direction the player is facing ( example in picture is down )
3.Increases/Decreases variables 6 or 7 depending on players direction ( from example it Increases it by 1 )
4.Thanks to point 3 and using Get Location Info I am able to "see" what event ID is standing in-front of my player
and Bind it to Variable varEventID(Variable 14)
5.Checks if Self Switch inside the event facing the player is turned ON
6.IF yes asks player to break rock
IF no shows chat with writing Error ( ive numbered the errors)
Error - if player facing down
Error 2 - if player facing up
Error 3 - if player facing left
Error 4 - if player is facing right
Now here is where the strange thing happens
If I come at my Small Rock from any direction
I will get the msg "Break Rock"
same for Big Rock
but if i am facing the boulder like in the pictures below
i will get Error 4 Error
while if face the boulder from ANY other direction I will get the "Break Rock" msg
now i also cannot walk into the boulder from any direction so the Event Hitbox Resize works
Does anyone have any clue to why this is happening?
And thank you for your time.