Ambrosia Garden Archive
    • Vehicles again


      I've been looking for this answer in the web board, but everyone starts the topic, and then talks about everything else but the topic. The question is:
      Is there a way for character to behave like a car? I mean, when you press a key it accelerates, when you release the key it just don't stop, it desacelerate?

      Another question. Can you make a map scroll up continuosly, so the player always have to keep moving?

      Than you

      ------------------

    • Quote

      Originally posted by julio:
      I've been looking for this answer in the web board, but everyone starts the topic, and then talks about everything else but the topic. The question is:
      Is there a way for character to behave like a car? I mean, when you press a key it accelerates, when you release the key it just don't stop, it desacelerate?

      In theory I believe this is possible.

      You could always create an event that keeps track of:
      - Direction
      - Acceleration

      Then create a timer that does the following:
      - Checks the first event
      - Moves the player(vehicle) appropriately by incrementing the player's map location with a map position call

      Then create an event that does the following:
      - Sets the direction
      - Sets the acceleration

      Then you could map this second event into the movement keys so that everytime you moved your direction was noted and your acceleration is noted. The faster your acceleration the faster the timer calls the event to move the vehicle. And it keeps moving the vehicle until you stop(0 acceleration) or until you hit the end of the map.

      Again this is just a theory. I've never attempted it. 🙂

      Quote

      Another question. Can you make a map scroll up continuosly, so the player always have to keep moving?

      To my knowledge, no. The engine is designed so that the map is always centered around the player unless you reach the borders of the map. The only way to make the map continuously scroll is to make the player continually move. Heh.

      A way around this would be in the above theory to make sure the player's acceleration is always greater than 0 and thus always moving.

      ------------------
      (url="http://"http://stark.evula.net/pogwalkthrough.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://stark.evula.net/plugins/dev_tools.htm")PoG Dev Tools(/url) | (url="http://"http://stark.evula.net/plugins/spells_expander.htm")Spells Expander(/url)
      (url="http://"http://stark.evula.net")Stark.evula.net(/url) | (url="http://"http://www.evula.net")EVula.net(/url) | (url="http://"http://mail.ambrosiasw.com/mailman/listinfo/coldstone_dev")Coldstone-dev mailing list(/url)

    • Thank you for responding... but?

      Quote

      Then create a timer that does the following:
      - Checks the first event
      - Moves the player(vehicle) appropriately by incrementing the player's map location with a map position call

      How do I create that timer?

      ------------------

    • Quote

      Originally posted by julio:
      How do I create that timer?

      Check out (url="http://"http://stark.evula.net/plugin_faq.htm#tiptimer")this(/url). When it talks about using plug-in load calls to call the timer just substitute plug-in load calls with "location local events."

      Let us know if you don't understand how to do it.

      ------------------
      (url="http://"http://stark.evula.net/pogwalkthrough.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://stark.evula.net/plugins/dev_tools.htm")PoG Dev Tools(/url) | (url="http://"http://stark.evula.net/plugins/spells_expander.htm")Spells Expander(/url)
      (url="http://"http://stark.evula.net")Stark.evula.net(/url) | (url="http://"http://www.evula.net")EVula.net(/url) | (url="http://"http://mail.ambrosiasw.com/mailman/listinfo/coldstone_dev")Coldstone-dev mailing list(/url)

    • Quote

      Originally posted by julio:
      **Another question. Can you make a map scroll up continuosly, so the player always have to keep moving?

      Than you

      **

      Couldn't you center the camera on an npc with a destination? Or can you not move the player when the camera's not centered on him? Its a thought.

      myshkyn

      ------------------
      "I'll give the fans just what they want, and nothing else at all."