Ambrosia Garden Archive
    • PA: testing the direction the player is facing


      itss not exactly a break through...but is a start when it comes to building oh say...a tank game...shooting game that might require the player to squaare off when coming in proximity with a NPC al la parasite EVE
      ...as follows:

      this applies to this scenario and anyone who needs to test what direction a player is facing

      idea:

      create 4(or 😎 events call each one facing_(s,e,w,sw,sw,ne,nw).cet

      create create a single variable, call it gb_compass.

      each event should do a simple change global action that sets the value of direction to;
      1=n
      2=ne
      3=e
      4=se
      ... ...etc

      in your player animation file, reserve a frame/create an auxillary frame place it at the start of directional animmation
      flag this frame to call event. for each directional loop/subsection of the players walk animation add the appropriate call event (the north walking section calls facing_N.cet)

      this will ensure that the value of gb_compass changes whenever you change direction. ***(make certain you set the value and not add)

      this takes care of the game keeping track of the player's direction now to put this newborn function to use....

      ------------------
      ...(list)
      ()(url="http://"http://www.geocities.com/ellrx/index.html")eLL' softWare.(/url)
      (
      )(url="http://"http://www.geocities.com/ellrx/index.html")Par eLL' el(/url)
      (*)eLL' softWare: Plotting and scheming since 1998

    • Nice. So simple, why didn't we think of it before 🙂 We were just stupid I guess. This may be as useful as the oh powerful timer 🙂

      ------------------
      CI-I@()s
      (url="http://"http://www.evula.org/world-of-cha0s/")The Homepage of Cha0s(/url)

    • The silly part is that I thought that this would be a question, so as the page loaded, I plotted the exact same thing in my mind. Weird.

      ------------------
      A tomb now suffices for him for whom the world was not enough.

    • (quote)Originally posted by CI-Ia0s:
      **Nice. So simple, why didn't we think of it before😕 : : paranoid ::

      ------------------
      ...

      ( edit ) UBB == pandora's box

      (This message has been edited by ellrx (edited 03-01-2003).)
      **

    • indeed, it s a very good idea 🙂
      however, it still can t be used for talking to NPCs...most RPGs FF-like require you face an NPC to talk to it... Coldstone allows you to talk to an NPC that is close enough even if you re turning your back on him... Coldstone automatically put your character in the right direction when you hit the "x" key while near the NPC... it s not a real pbm, I think we can just accept that but well...

      ------------------
      God is real... unless declared integer...
      Watashi wa Iori Yagami no gakuse-desu
      My RPG's homepage: (url="http://"http://darkrising.free.fr/")http://darkrising.free.fr/(/url)

    • As soon as I read "create 4(or 😎 events call each one facing_(s,e,w,sw,sw,ne,nw).cet" I said, "D'oh!" Thanks ellrx!

      ------------------
      The autotrophic organisms are decidedly more verdent when located on an adjacent surface.