Comments (4)
Hi Nathan,
The way I coded up poly-line collisions uses directions. Right now any
vertical poly-line restricts left and right movement, and any horizontal
poly-line restricts up and down movement. So it should be easy to add a
condition field in map files (editable using Tiled) for a poly-line
restricting a single direction and then only generating a poly-line for
that direction. But that just allows movement, you would need to do
something different altogether to get a "jump". Also this is only with
polylines.
On Mon, Oct 12, 2015, 4:45 PM Nathan [email protected] wrote:
Currently you can block areas off completely or not at all. I am working
making enter and exit properties for collision zones so that you can
specify that a tile is blocked unless entering from one or more directions,
or exiting from one or more directions. So you could set a tile as a
collision field, and then give it the property "enter" with the value "up
left". That then would allow entry to the tile from above and left. This
will make it possible to implement the ability to jump over ledges with
"enter: up" and "exit: down" if it is a south-facing ledge.—
Reply to this email directly or view it on GitHub
#41.
from tuxemon.
Just in case that helps :)
On Mon, Oct 12, 2015, 4:56 PM Dustin Dannenhauer [email protected] wrote:
Hi Nathan,
The way I coded up poly-line collisions uses directions. Right now any
vertical poly-line restricts left and right movement, and any horizontal
poly-line restricts up and down movement. So it should be easy to add a
condition field in map files (editable using Tiled) for a poly-line
restricting a single direction and then only generating a poly-line for
that direction. But that just allows movement, you would need to do
something different altogether to get a "jump". Also this is only with
polylines.On Mon, Oct 12, 2015, 4:45 PM Nathan [email protected] wrote:
Currently you can block areas off completely or not at all. I am working
making enter and exit properties for collision zones so that you can
specify that a tile is blocked unless entering from one or more directions,
or exiting from one or more directions. So you could set a tile as a
collision field, and then give it the property "enter" with the value "up
left". That then would allow entry to the tile from above and left. This
will make it possible to implement the ability to jump over ledges with
"enter: up" and "exit: down" if it is a south-facing ledge.—
Reply to this email directly or view it on GitHub
#41.
from tuxemon.
Hi,
Cool. Yeah I saw some comments about it in the code but I wasn't sure how far it was implemented yet. Looks pretty cool. I think I might add it for zones as well anyway though because I think it would be useful to set rules for larger groups of tiles rather than drawing individual lines for each side.
from tuxemon.
Cool.
On Mon, Oct 12, 2015, 5:02 PM Nathan [email protected] wrote:
—
Reply to this email directly or view it on GitHub
#41 (comment).
from tuxemon.
Related Issues (20)
- Log filename format is not supported by Windows
- Crash when using Boulder attack with Rockitten HOT 9
- I need help!! HOT 7
- I want the dialog box to show the name of the NPC
- Where is Tuxemon.cfg on Linux Mint? HOT 2
- Tuxeman, Billie, Rockitten Model Sheets HOT 1
- [Suggestion] Develop "GressThatTuxemon" Android mini-game
- Tuxemon cannot be found in the application menu HOT 1
- I found 70+ 8-bit JRPG music! HOT 6
- IndexError when both tuxemon knock each other out in the same turn HOT 1
- Fishing rod crash HOT 1
- Evolution crash HOT 1
- Tuxemon Halloween 2023 coloring-in artwork HOT 1
- Items should always be used at the beginning of the turn.
- Bug Crashes Game Shortly After Acquiring Tuxemon HOT 1
- cannot import name 'FieldValidationInfo' from 'pydantic' HOT 6
- Player Unable to Move after Respawning After Defeat HOT 1
- Happy New Year 2024 Illustrations! HOT 4
- Old windows crash pydantic bug is back again HOT 5
- Idea: 'No Battle' Mode HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuxemon.