Footprints, and general 'stamp' stuff?

  • #1, z PykeTuesday, 18. June 2013, 09:59 hodinky 12 years ago
    I was wondering if its at all possible to create objects at certain areas, that would follow in a characters wake.
    For example, footprints in snow, or have a character be able to 'tag' an area he has been with a flare, or paint. It would give things mazes quite a cool element, in being able to see where you've been through the character actually leaving a mark on the world.

    Bažant

    59 Posts


  • #2, z afrlmeTuesday, 18. June 2013, 12:07 hodinky 12 years ago
    yes I think this is possible using lua to get characters current position & then setting a animation or frame to characters position + offset to correctly place the footprint or object.

    I was planning on looking into it at some point in the near future.

    Did you check out the dynamic footsteps demo I added to the demo folder of the dev build dropbox? I think I could probably edit that easily enough for the footprint part.

    Imperátor

    7285 Posts

  • #3, z PykeTuesday, 18. June 2013, 12:13 hodinky 12 years ago
    I did! It was actually something that prompted this question.
    Would you then need a completely unique object or animation for each footstep?

    Bažant

    59 Posts

  • #4, z afrlmeTuesday, 18. June 2013, 13:47 hodinky 12 years ago
    for the footsteps I was thinking of using x amount of frames for each foot & then controlling which frames should be displayed using a count variable & an if else query so say after 10 steps we reset back to the first footstep frame ... of course we'd have to take into consideration the direction the character was/is facing for each footstep.

    Imperátor

    7285 Posts

  • #5, z PykeTuesday, 18. June 2013, 14:19 hodinky 12 years ago
    For STASIS I don't think that would be a massive issue, because the character is so small. The footprints would only be a few pixels wide.

    Bažant

    59 Posts

  • #6, z afrlmeTuesday, 18. June 2013, 14:43 hodinky 12 years ago
    what I meant was that like in say ff7 when you are on the world map on the snowy island near the crater thing - it creates x amount of footsteps before it starts removing the last ones added after a period of time or after you've taken x amount of steps - in other words we recycle the footstep animation frames to save on memory/vram usage. I don't think having them permanently displayed would be the best idea really as it would be unnecessary clutter.

    Imperátor

    7285 Posts