Comments (4)
So, this PR (#276) should fix the parent issue, but as for the parallax.. I'm not sure how it would work, actually.
The parallax location is changed based on the viewport location, and the camera sets the viewport location. So if the camera took the parallax location into account: wouldn't this result in an endless loop (viewpoint change -> parallax change -> viewport change -> parallax change)?
from monoags.
The parallax location is changed based on the viewport location, and the camera sets the viewport location. So if the camera took the parallax location into account: wouldn't this result in an endless loop (viewpoint change -> parallax change -> viewport change -> parallax change)?
I think for any point on parallax layer there must be a viewport coordinate that would make that point appear in the necessary point on screen.
BTW, did not pay attention to this, with introduction of the viewport Pivot, does camera react on Pivot change?
from monoags.
I think for any point on parallax layer there must be a viewport coordinate that would make that point appear in the necessary point on screen.
I'll try playing around and see if I can come up with something, though I'm a little skeptic.
BTW, did not pay attention to this, with introduction of the viewport Pivot, does camera react on Pivot change?
No, the current built in camera assumes the pivot is the bottom left.
from monoags.
I've added parallax consideration for the camera in this branch: https://github.com/tzachshabtay/MonoAGS/tree/CameraParallax
This seem to work fine in the demo game if I give the character parallax speed. Can you check if it works for your scenario?
And also congratulations on the awards!! :)
from monoags.
Related Issues (20)
- ImageSharp- cross platform bitmaps
- Veldrid- Cross platform graphics API agnostic rendering library
- Anchor to Parent HOT 2
- MP3 support HOT 1
- Prevent texture bleed: use pre-multipled alpha blending
- Walk-behinds not redrawn when room animation frame changes HOT 1
- The purpose of walk-behinds HOT 1
- Viewport Z-order
- Viewport pivot feature not working as expected HOT 11
- Question: making object's color brighter / less saturated HOT 5
- Suggestion: properties for getting absolute position of an entity HOT 8
- Exception in RenderOrderSelector when comparing child object with "orphan" object
- Matching object with areas does not take object's parent into account
- Applying saturation effect to one object causes shader being applied to whole screen
- Consider splitting pivot point to pivot and origin points
- Allow setting actual root path for FileSystemResourcePack
- Resource tree HOT 5
- Unhandled exception, screenshot attached. HOT 4
- Win builds problem 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 monoags.