Giter Site home page Giter Site logo

Comments (6)

victorlevasseur avatar victorlevasseur commented on April 28, 2024

I've found how to change that in GDCore/Events/EventsCodeGenerator.cpp but I wonder if the condition need to invert itself the result if the "conditionInverted" is used in it.

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

For objects conditions, the predicat (=the expression inside the if) used to pick objects is simply negated (by adding a ! in the generated code). What is your object condition for which you need to do something special? Why does the default behavior is not satisfaying?

from gdevelop.

victorlevasseur avatar victorlevasseur commented on April 28, 2024

If the condition is inverted, I need to pick the object that are not colliding with the tilemap : that's a very specific condition : a bit like the collision condition. Maybe I need to make it free ?

from gdevelop.

4ian avatar 4ian commented on April 28, 2024

I think that the condition is better as a free condition indeed. (Note that if you're dealing with two list of objects, as classical conditions collisions, you may take a look at ObjectTools.cpp. It has a TwoObjectListsTest function that launch a function on each pair of objects in the list and that you should reuse. But this is only if you deal with two objects list, that's maybe not your problem here :) )

from gdevelop.

victorlevasseur avatar victorlevasseur commented on April 28, 2024

I saw that function (which seem quite conplicated inside) but I need to
pass 3 integers to the "test function" but there is only 1 "extra
parameter" (row, columns and layer of the Tile).

2014-08-30 17:34 GMT+02:00 Florian Rival [email protected]:

I think that the condition is better as a free condition indeed. (Note
that if you're dealing with two list of objects, as classical conditions
collisions, you may take a look at ObjectTools.cpp. It has a
TwoObjectListsTest function that launch a function on each pair of objects
in the list and that you should reuse. But this is only if you deal with
two objects list, that's maybe not your problem here :) )


Reply to this email directly or view it on GitHub
#13 (comment).

Victor LEVASSEUR
[email protected]

from gdevelop.

victorlevasseur avatar victorlevasseur commented on April 28, 2024

I'm currently working on a solution to let the dev pass as many extra params as he wants. ;)
Will soon post a PR.

from gdevelop.

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.