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)