DE EN FR ES IT CZ

Character personal space

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 12 years ago
    Is there a way to make characters give each other space, resulting in them walking around each other?
  2. New to Visionaire Studio?

    Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.

    See the Indie Bundle Try it for free
  3. · 12 years ago
    Yes I believe so, if you are willing to dive into a bit of Lua scripting. I already wrote a script that allows you to check a radius around a given position. I suppose if you used that in combination with a loop then you could check when 2 characters enter the same radius & then perform some other function to determine which way the npc should side-step.
  4. · 12 years ago
    This is something that should be built into VS, surely most characters need some kind of body mass?
  5. · 12 years ago
    hehe you would think so, but it's not a common feature of 2D adventure games. 3D yes. The only games I can think of that really required collision detection were a few of the games done by Revolution Software during their early days.

    In Lure of the Temptress for example they integrated basic collision detection & AI into their NPC characters as the NPC characters would randomly walk around the scene to do random tasks. If you or the NPC crossed paths then if I remember correctly, the characters greeted each other or one stopped while the other stepped around them. It's been a lot of years since I played it (was on amiga 600 - showing my age I guess). Actually I believe GOG gives you the game for free these days along with Beneath a Steel Sky when you register an account. I think Beneath a Steel Sky might have also had collision detection, but not 100% sure.

    Here's the radius function I wrote. It's currently written for checking if mouse cursor is inside of a specified radius based on position given, however it wouldn't be too complicated to rewrite the function to check radius around playable character against the radius of an NPC character - well at least I don't think it should be! grin

    P.S: in general most point & click adventure games tend to feature statically placed NPC characters. It's rare to see dynamic non playable characters in adventure games unless the developer is willing to put the effort into writing basic AI for the characters & even then the characters will most likely be playable characters that you can switch between such as in the game Resonance or the Blackwell series.

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?