Code Monkey home page Code Monkey logo

Comments (9)

Pyrdacor avatar Pyrdacor commented on May 18, 2024

This also happens with the fire place in grandfathers house. Every map uses chained map events per tile. At the moment only the first one is executed. If the change map event is preceded by another event (e.g. a condition) it won't be triggered.

I will implement this later the day.

from ambermoon.net.

Pyrdacor avatar Pyrdacor commented on May 18, 2024

Ok I implemented map event chains and improved map events in general. But then I noticed it wasn't the problem. The stairs are just marked as "block movement". The problem is that each tile can have a back and a front tile. And if it has a front tile, this tile matters in regards of movement blocking etc. But some tiles have the front tile not blocking but are actual walls in the game. Those tiles have a blocking back tile so I thought it is blocking if either front or back tile blocks. And so I did it that way. But the stairs are a case were this isn't working so I reverted the logic to "only front tile matters if present". Have to research this again.

In v1.0.10 (which is coming in a minute) this should work. But there will be some tiles that won't block anymore even if they should.
:(

from ambermoon.net.

Thallyrion avatar Thallyrion commented on May 18, 2024

In v1.0.10 (which is coming in a minute) this should work. But there will be some tiles that won't block anymore even if they should.

Indeed there are. I guess another way to determine the correct function of a tile has to be found.

blocking problem

from ambermoon.net.

Thallyrion avatar Thallyrion commented on May 18, 2024

Found another interesting case where the event still does not correctly work.

Tested with 1.10 House of Healers Cellar stairs still don't work. Thieves House first floor does work now.

house of healers cellar

from ambermoon.net.

Pyrdacor avatar Pyrdacor commented on May 18, 2024

That's exactly the spot where I first saw that issue. There are not really bits left which could be the movement blocking flag. The only thing I can think of is a bit in the front tile data that says "get movement blocking from back tile". I will look into it the next days.

from ambermoon.net.

Pyrdacor avatar Pyrdacor commented on May 18, 2024

About the healer cellar: I will check tomorrow.

from ambermoon.net.

Thallyrion avatar Thallyrion commented on May 18, 2024

Found another spot for this issue. Southern City House

city house

from ambermoon.net.

Pyrdacor avatar Pyrdacor commented on May 18, 2024

The new cases might be caused by map borders. I restricted to move the player only until a 1 tile border is reached in indoor maps as it wouldn't make sense to move him to the edge of a map. At least I thought so. But now as I see the doors and stairs on the edge of the map this might have been a mistake. So I think I know how to fix this.

from ambermoon.net.

Pyrdacor avatar Pyrdacor commented on May 18, 2024

Should be fixed in v1.0.11.

from ambermoon.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.