Giter Club home page Giter Club logo

Comments (7)

dbaldan avatar dbaldan commented on July 18, 2024

More info:
When you use a Drawmethod Clip, you can't chance the entity facing because it gets ignored and its always facing right. It you use changeentityproperty, it won't work.

from openbor.

DCurrent avatar DCurrent commented on July 18, 2024

Please be more specific. Is the entity direction not changing or is the clipping?

The clipping effect isn't supposed to change direction because it doesn't have a direction. It's just a vector based effect applied as the entity is displayed. You have to do the math work yourself for left and right.

from openbor.

dbaldan avatar dbaldan commented on July 18, 2024

The entity. It always shows facing right. If you apply a negative x velocity, it will move left, but the graphic is still facing right. But I think its related to what you had explained at CC:

As per universal coding practices, graphic effects are based on screens, not entities. There's no direction flipping. They just do exactly what you tell them, no more or less.

About the other issue, do you think its possible to fix?

from openbor.

whitedragon0000 avatar whitedragon0000 commented on July 18, 2024

this is not an issue. shadow is not a sprite for your drawmethod.
if you want a clipped shadow, you need to script a custom shadow with drawmethod.

from openbor.

dbaldan avatar dbaldan commented on July 18, 2024

@whitedragon0000 ok about the shadow. But and about the mirror effect?

from openbor.

DCurrent avatar DCurrent commented on July 18, 2024

@dbaldan Mirror effect works the exact same way as shadow, and consequently shares the same behaviors. To clip, or perform other complex drawing methods, you have to script your own mirror effect. It's actually a lot easier than it sounds. Same principal as drawing shadow trails.

from openbor.

dbaldan avatar dbaldan commented on July 18, 2024

@DCurrent I see. Thanks for the explanation.

from openbor.

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.