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.

[Solved] Triggering Event-Touch from a larger collision area

Hiya, I was just wondering where is the code that I should edit to change the area of collision detection for the event-touch event trigger (e.g. having it trigger when the player "collides" with a 2 square radius of the event, instead of literally touching it). I tried editing check_event_trigger_touch(x, y) in Game_Event but it didn't seem to have affected anything.

Thanks a lot for your time in advance!


Edit:
Oops, nevermind, got it done (I think). I didn't know that Game_Event's check_event_trigger_touch did not include when the player runs into the event, even though the trigger's set to Event Touch instead of Player Touch. Editing both of them should do the job.
 

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