Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Re: Eventer's Toolbox (check if event1 is on event2)

This is a reply to the [VX] Eventer's Toolbox by Hevendor

http://rmxp.org/forums/index.php?topic=42864.0

I want to add another function that checks if event ID1 is standing on event ID2 (so that I wouldn't have to clutter my variables to check the positions of event id1 and 2.) Is there a way (or another easier way)?

Any help is greatly appreciated. :3
 

Zeriab

Sponsor

Here ya go:
Code:
class Game_Map
  def event_on_event(id, id2)
    return events[id].x == events[id2].x && 
           events[id].y == events[id2].y
  end
end

I think how to use it is obvious since you know how to use Hevendor's Eventer's Toolbox.
Should it not be obvious just tell so and I'll explain.

*hugs*
- Zeriab
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top