RMEx / RME

Extension tool for RPGMaker VXAce
http://rmex.github.io/
MIT License
40 stars 10 forks source link

Unusable commands: `pixel_in_event?` and `pixel_in_player?` #413

Closed acs-l closed 6 years ago

acs-l commented 6 years ago

Command's bug

Configuration (when the bug has been encountered)


Bug's description

Actual behaviour

These two commands (pixel_in_event? and pixel_in_player?) generate the following error message when invoked:

Script 'EvEx.rb' line 4430: NoMethodError occured.

undefined method `pixel_in?` for <Game_Event#0xb0000c>

Expected behaviour

What's the command's documentation tells: "To tell whether the given pixel is located within the event (true) or outside (false)".

Steps to reproduce

Try to invoke the methods with whatever arguments. For instance: puts "pixel_in_event? => #{pixel_in_event?(me, 0, 0)}"


Potential fix: Implement the pixel_in? method in the Game_Event's monkey-patch (inside EvEx.rb).