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.

HBGames

I was wondering-
Is it possible to activate the contents of an event while they player is say, 5 or less tiles away from an event?

In my survival game, there really isn't a purpose for the more resource Dependant walls, and I want it to increase your "Sanity" meter (Variable) when near them.

I was thinking of setting the players X and Y values to a variable, and then setting the events X and Y variables to another variable, and have it compare the two. My only problem is that I'm unsure of how it will be layed out, and I want to know how everybody else does it.

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